tel*_*per 4 javascript jquery calendar jquery-ui datepicker
当点击[今天]按钮时,我需要我的日历转到当前日期,这样用户可以在浏览我的日历时到达当天.
例如,当前月份是2013年2月, 并且当用户点击[今天]按钮时,用户正在浏览日历的2015年12月页面,它将自动返回到2013年2月的日历的当前日期页面 .
我在用
jQuery的UI,datepicker.min.js
作为我日历的插件
jQuery UI Datepicker具有为此构建的功能.
请参阅:http://jqueryui.com/datepicker/#buttonbar
$(function() {
$( "#datepicker" ).datepicker({
showButtonPanel: true
});
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8426 次 |
| 最近记录: |