jquery datepicker点击日期框后没有往文本框填值

不用其他的插件,就用datepicker ,希望知道的前辈帮帮忙,刚接触jquery
2026年09月23日 23:34
有3个网友回答
网友(1):

配置的不对吧~ 给你个我们项目中的配置看看:

$('#datato').datepicker({
dateFormat: 'mm/dd/yy',
yearRange: '2009:2099',
showOtherMonths: true,
showWeeks: true,
clearText:'clear',
closeText:'close',
prevText:'prev',
nextText:'next',
currentText:' ',
minDate:"+1D",
monthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Aep','Oct','Nov','Dec'],
changeFirstDay: false,
buttonImage: '/img/small_icons/cal.png',
showOn: 'both'
});

$('#datato') 是文本框的jquery对象~

网友(2):














网友(3):

推荐用My97DatePicker