I have a jquery datepicker and I need to be able to change the background color for the selected cell date. I’m trying with something like:
$("#fecha").datepicker({
onSelect: function(value, date) {
alert(date.css());
}
});
hoping that the date parameter refers to the selected cell, but it doesn’t seem to work.
Any suggestion?
//Edit:
The solution should let me have different cells with different colors set dynamically, this is why I’m trying with onSelect instead of changing the CSS directly.
The purpose is to have a calendar with events established by the user.
Thanks in advance.
I think the best way (assuming i have understood you correctly) is to simply override the css.
In your site stylesheet or html head section you just need to override the following css selector
EDIT
With your edit in mind, the following should work (assuming you can get the datepicker to stop refreshing)