如何启用jQuery内联datePicker的过去日期? [英] How to enable the past dates of jQuery inline datePicker?

查看:93
本文介绍了如何启用jQuery内联datePicker的过去日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此jQuery嵌入式datePicker插件的嵌入式日历. 默认情况下,禁用当前日期的前几天. 我要启用它们. 你有什么主意吗? http://www.kelvinluck.com/assets/jquery/datePicker /v2/demo/inlineDatePicker.html

I'm using inline calendar of this jQuery inline datePicker plugin. By default the days before the current date was disabled. I want to enable them. Do you have any idea? http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/inlineDatePicker.html

$(function () {
    $('.turn-me-into-datepicker').datePicker({inline:true})
            .bind(
            'dateSelected',
            function (e, selectedDate, $td) {
                console.log('You selected ' + selectedDate);
            }
    );
});

在HTML下:
我在div中使用了类名.

Under Html:
I've used the class name inside a div.

推荐答案

您只需查看其他们网站上的实时示例.

You can just check out their documentation for the appropriate option or other live examples from their website.

使用演示示例回到主题:

Going back to the topic, using their demo example:

$('#inline-3')
    .datePicker(
        {
            inline:true,
            startDate:'01/01/2000' // first selectable date is 1st Jan 2000
        }
    );

这篇关于如何启用jQuery内联datePicker的过去日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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