Jquery Datepicker功能:
function myFunction(ID) {
var id = ID;
$( "#datepicker23" ).datepicker({
minDate: 0
});
$( "#datepicker22" ).datepicker({
minDate: 0
});
$( "#datepicker14" ).datepicker({
minDate: 0
});
}
我选择日期选择器的输入标签,动态创建3个输入框,id为datepicker23,datepicker22,datepicker14,
<input type="text" onclick="myFunction('+standNo+')" id="datepicker'+standNo+'" required/>
仅在第二次点击输入框
时显示日历