Custom background color for calendar td

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anoop005008
    New Member
    • Feb 2014
    • 2

    Custom background color for calendar td

    I have an event calendar.I want to change the background color of td after a particular date .Iam using the the following jquery

    Code:
    $('[class*="fc"]').filter(function() {
      return $(this).data('date') > "2014-02-22";
    }).css("background-color","white");
    It changes the background-color and the td is changed as follows.

    Code:
    <td class="fc-day fc-wed fc-widget-content fc-past" data-date="2014-02-19" style="background-color: rgb(255, 255, 255);">
    When i click the Prev,Next,Today buttons to navigate on the calendar, the td resets as follows.

    Code:
    <td class="fc-day fc-wed fc-widget-content fc-past" data-date="2014-02-19">
    Attached Files
    Last edited by anoop005008; Feb 21 '14, 10:25 AM. Reason: Adding Descriptions
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    if clicking on either button means that you reload (parts) of your page, you need to re-call that function as well.

    Comment

    • anoop005008
      New Member
      • Feb 2014
      • 2

      #3
      I called the function But it does not help me.

      Comment

      Working...