jquery 移动日期选择器
我正在使用 jquery 移动日期选择器。与标准 jquery datepicker 一样,我试图设置 mindate。
但是,日历加载但最短日期未设置。只有当我点击日历时,日期才会被屏蔽。
不确定我做错了什么?
$('#calendar').live('pagecreate',function(event){
$.datepicker.setDefaults({
minDate: 0,
});
});
I am using the jquery mobile datepicker. As with the standard jquery datepicker I am trying to set mindate.
However the calendar load but the min date does not set. Only when I click on the calendar does the dates block out.
Not sure what I am doing wrong?
$('#calendar').live('pagecreate',function(event){
$.datepicker.setDefaults({
minDate: 0,
});
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定目前是否支持 jqm 实验日历,但请尝试 Mobiscroll 日历。
设置最短日期很容易
Not sure if the jqm experimental calendar is supported at this point, but give the Mobiscroll Calendar a try.
Setting the min date is easy