代码如下:
$("#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)',
});
如对本文有疑问, 点击进行留言回复!!
【JavaScript笔记(一)】万丈高楼平地起 - 基本概念篇
轻松解决 org.apache.taglibs.standard.tlv.JstlCoreTLV 困惑
vert实践五——Json?Protocol Buffer?FlatBuffers?
[基于tensorflow的人脸检测] 基于神经网络的人脸检测8——验证训练好的神经网络
网友评论