How to change the cell color of a jquery datepicker
Posted
by MazarD
on Stack Overflow
See other posts from Stack Overflow
or by MazarD
Published on 2010-05-25T15:53:03Z
Indexed on
2010/05/26
11:21 UTC
Read the original article
Hit count: 349
Hi,
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 setted dinamically, this is why I'm trying with onSelect instead of changing the css directly.
The purpose is to have a calender with events established by the user.
Thanks in advance.
© Stack Overflow or respective owner