当前位置: 移动技术网 > IT编程>开发语言>JavaScript > jquery 日期控件datepicker属性详细解析

jquery 日期控件datepicker属性详细解析

2018年11月03日  | 移动技术网IT编程  | 我要评论

代码如下:


    $("#regdate").datepicker(
     {
    showmonthafteryear: true, // 月在年之后显示
    changemonth: true,   // 允许选择月份
    changeyear: true,   // 允许选择年份
    dateformat:'yy-mm-dd',  // 设置日期格式
    closetext:'关闭',   // 只有showbuttonpanel: true才会显示出来
    duration: 'fast',
    showanim:'fadein',
    showon:'button',   // 在输入框旁边显示按钮触发,默认为:focus。还可以设置为both
    buttonimage: 'images/commons/calendar.gif',   // 按钮图标
    buttonimageonly: true,        // 不把图标显示在按钮上,即去掉按钮
    buttontext:'选择日期',
    showbuttonpanel: true,
    showothermonths: true,
    //appendtext: '(yyyy-mm-dd)',
    });

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网