By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,495 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,495 IT Pros & Developers. It's quick & easy.

Custom background color for calendar td

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

Expand|Select|Wrap|Line Numbers
  1. $('[class*="fc"]').filter(function() {
  2.   return $(this).data('date') > "2014-02-22";
  3. }).css("background-color","white");
It changes the background-color and the td is changed as follows.

Expand|Select|Wrap|Line Numbers
  1. <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.

Expand|Select|Wrap|Line Numbers
  1. <td class="fc-day fc-wed fc-widget-content fc-past" data-date="2014-02-19">
Attached Files
File Type: zip (295.2 KB, 48 views)
Feb 21 '14 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,639
if clicking on either button means that you reload (parts) of your page, you need to re-call that function as well.
Feb 21 '14 #2

P: 2
I called the function But it does not help me.
Feb 21 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.