Jquery datepicker:点击时突出显示“今天” [英] Jquery datepicker: highlight 'today' when clicked?

查看:163
本文介绍了Jquery datepicker:点击时突出显示“今天”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上有一个jquery datepicker,日历总是可见的。我的问题是我似乎无法选择今天。嗯,我可以,但是它并没有像其他日子那样改变它的亮点,它总是保持它的今天,这很令人困惑。

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.


  1. 在选择(如其他元素)时,有什么内置的方式突出今天吗? < - 首选

  2. 有没有办法用js轻松隐藏今天的亮点?

谢谢!

推荐答案

你可以覆盖jquery ui css.Try这个 jsfiddle

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;    
} 

这篇关于Jquery datepicker:点击时突出显示“今天”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆