问题
I have a jquery datepicker on the site, the calendar is always visible. My problem is I cannot seem to select 'today'. Well, I can, but it doesn't change its highlight as the other days do, it always keeps its 'today-look' and this is pretty confusing.
- Is there some built-in way how to highlight today when selected (as the other elements are)? <- preferred
- Is there a way to easily hide today's highlight with js?
Thank you!
回答1:
You can override the jquery ui css.Try this jsfiddle
/*selected date */
.ui-state-active{
color:red !important;
}
/*todays date*/
.ui-state-highlight{
border:none !important;
}
来源:https://stackoverflow.com/questions/17508545/jquery-datepicker-highlight-today-when-clicked