view - JQuery Calendar Image Change -


I am creating a calendar for March, which contains each day a block (div) that would be offered on that day , But when the day has passed, it has to change the image to another, but it should be visible.

How can I do this? I have to show specific days, weeks, etc. but to actually do that I am amazed ..

thanks

I used this code:

  $ ('# calendar IMG'). Each (function () (if new (date ($ (this). Data ('date')) GetTime () & lt; new date () GetTime () - 24 * 60 * 60 * 1000) {$ ( This). CSS ({Opacity: 0.5, range: '2px solid red}});}});  

Comments