2
我正在使用下面的jQuery显示日期选择器我有多个日期选择框。它工作正常,但它并没有显示十二月份。请帮我在这里是我的代码日期选择器不显示12月
$('.datepicker').live('focus',function(){
$(this).datepicker({
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
yearRange: '1900:' + new Date().getFullYear(),
maxDate: 0
})
});
你为什么设置'maxDate:0'? –
@AnthonyC已添加maxDate = 0,以便它不应显示未来日期。 –
请在https://jsfiddle.net/上分享您的js – htpvl