Datepicker hightlight days through css
Hi guys!
I'm trying to highlight some specific days in my datepicker. I use the "beforeShowDay" option, and the selection works fine.
- beforeShowDay: function(date) {
- for(var i=0; i<daysToHighlight.length; i++) {
- if(date.getFullYear() == daysToHighlight[i].year) {
- if(date.getMonth() == daysToHighlight[i].month) {
- if(date.getDate() == daysToHighlight[i].day) {
- return [true, "highlight", "hours: " + daysToHighlight[i].hours];
- }
- }
- }
- }
- return [true, ""];
- },
In the CSS file I added this class:
- .highlight {
- background-color: green;
- }
The problem is that background doesn't change, but it shows only a green border around highlighted days. It seems to be that there's another class which goes over the "highlight" one.
Is there anybody who can help me? I'm using jquery-ui-1.8.4.custom.css.