开发者

JQuery DatePicker remove today-class

I want the today-cell in JQuery DatePicker to have the same look/behaviour as all other selectable days. I suppose it somthing like 开发者_开发知识库removing the class td.ui-datepicker-today. Any suggestions?


I think this will help you.

How to change the cell color of a jquery datepicker


If I were you, I would leave the class as it is, but change the css, so it is the same css as the rest.

The other scenarios are: you change the plugin, but that would be bad, because if a newer version comes out, you'll have to change it again.

OR, you CAN unset the class. But then you would first let the plugin set it, and then you unset it, which is pretty dirty

You can easilly extend the existing css with some new css, so whenever and whatever changes in the future (your mind or the plugin :) ) it will be easy to controll.


you need to over load the class .ui-state-default ui-state-highlight in your style sheet with the style inside the class .ui-state-default

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜