jquery 移动日期选择器

发布于 2024-12-21 09:43:43 字数 310 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随心而道 2024-12-28 09:43:43

不确定目前是否支持 jqm 实验日历,但请尝试 Mobiscroll 日历

设置最短日期很容易

$("#calendar").mobiscroll().calendar({
    minDate: new Date(2013, 2, 23)
});

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

$("#calendar").mobiscroll().calendar({
    minDate: new Date(2013, 2, 23)
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文