[英]How to control auto opened Datepicker in materilize CSS?
<input type="date" class="datepicker">
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15 // Creates a dropdown of 15 years to control year
});
After select the date from the date-picker, when we moved to next tab on window and again you came back current window the date-picker has opened automatically.
从日期选择器中选择日期后,当我们移至窗口的下一个选项卡,而您又回到当前窗口时,日期选择器将自动打开。
Try: 尝试:
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15, // Creates a dropdown of 15 years to control year
onClose: function(){
$('.datepicker').blur();
$('.picker').blur();
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.