Apply different styles when select a day - jQuery multidatepicker

DanielB

New Member
I am using the multidatepicker plugin.I have three kind of days on my scope:[*]Unavailable - These ones have the default style;[*]Once a day get a click, it becomes the second kind:Out Of Window - These ones have a black border.[*]And, if the day get clicked the second time, the day become last kind: Free - These have a black border and green background.So, my question is: How to apply an specific style/class on a day when it gets clicked?I tried something like:\[code\]onSelect: function(){ $('.ui-state-active').each(function(){ $(this).addClass('pick_up_free_dayCalendar'); }) $(".calendar_").multiDatesPicker('refresh'); // multidate picker has no refresh method, I created one!}\[/code\]But, didn't work at all. Any suggestions?
 
Back
Top