Try
$(this).css({'background-color':'', 'color':''});

http://docs.jquery.com/CSS/css#namevalue


On Apr 29, 11:40 am, Code Daemon <ryan.det...@gmail.com> wrote:
> I've tried to two different datepicker scripts and what I'm trying to
> do is hilite which dates satisfy a certain condition.
>
> For example, when the page loads I will make a JSON call to the server
> to return all dates that are holidays, then on the inline datepicker I
> want to hilite those cells in red.
>
> What I'm doing now is something like this in the JQuery-UI datepicker
> implementation but nothing works:
>
>                 'onChangeMonthYear':
>                                 function(date){
>                                         $(".ui-state-default").each(
>                                                 function(){
>                                                         $(this).attr("color", 
> "red");  //for testing, change font color
>                                                 }
>                                         );
>                                 }
>
>                         });

Reply via email to