Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the font color of weekend dates in jquery datepicker

Is it possible to change the font color of dates that fall on the weekends in jquery calendar? I try to use the class ui-datepicker-week-end but it only change the font color of Sun and Sat. What I want is to also change the color of days that falls on sun and sat.

like image 901
Sherry Avatar asked Dec 14 '10 13:12

Sherry


1 Answers

You need a bit more specificity in your selector, since ui-datepicker-week-end is on the <td>, but there's an <a> with ui-state-default inside, like this:

.ui-datepicker-week-end, .ui-datepicker-week-end a.ui-state-default {color:red;}

You can test it here. If you're curious, the markup for day cell is like this:

<td class="ui-datepicker-week-end">
  <a class="ui-state-default" href="#">DAY NUMBER</a>
</td>
like image 102
Nick Craver Avatar answered Sep 30 '22 05:09

Nick Craver