Change font color on weekends in jquery datepicker

Is it possible to change the font color of dates that fall on weekends in a jquery calendar? I am trying to use the ui-datepicker-week-end class, but this only changes the font color of Sun and Sat. I also want to change the color of the days that fall in the sun and sit.

+5
source share
1 answer

In your selector, you need a more specific specificity, as it ui-datepicker-week-endis in <td>, but there <a>with, ui-state-defaultinside, for example:

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

Here you can test it . If you're interested, the markup for the day cell is as follows:

<td class="ui-datepicker-week-end">
  <a class="ui-state-default" href="#">DAY NUMBER</a>
</td>
+7

All Articles