开发者

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 col开发者_开发知识库or of Sun and Sat. What I want is to also change the color of days that falls on sun and sat.


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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜