And*_*vey 6 jquery jquery-ui datepicker
我不希望在我的JQuery UI datepicker上显示"今天"突出显示.gotoCurrent选项用于突出显示移动到所选日期.这没关系.但是将gotoCurrent设置为true无效.我究竟做错了什么?
gotoCurrent控制ButtonPanel中"今天"按钮的行为.
select a date != today's date, click this button:
if gotoCurrent = false -> today's date is shown
if gotoCurrent = true -> selected date is shown
Run Code Online (Sandbox Code Playgroud)
禁用今天的突出显示:在文件ui.datepicker.js中:
搜索 :
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
Run Code Online (Sandbox Code Playgroud)
并删除突出显示类(或删除整行):
(printDate.getTime() == today.getTime() ? '' : '') +
Run Code Online (Sandbox Code Playgroud)
你应该得到你想要的东西.
| 归档时间: |
|
| 查看次数: |
2973 次 |
| 最近记录: |