I am facing an issue with my event calendar where I want to change the background color of td
. I came across a helpful solution in this question, but it did not fully solve my problem. When I implemented the following jquery
:
$('[class*="fc"]').filter(function() {
return $(this).data('date') > "2014-02-22";
}).css("background-color","white");
The background-color
changes successfully, and the td
is updated accordingly:
<td class="fc-day fc-wed fc-widget-content fc-past" data-date="2014-02-19" style="background-color: rgb(255, 255, 255);">
However, when I navigate using the Prev, Next, Today buttons on the calendar, the td
resets as shown below:
<td class="fc-day fc-wed fc-widget-content fc-past" data-date="2014-02-19">
Your assistance in this matter would be greatly appreciated.
Thank you in advance.