演示链接
$('.datepicker').pickadate({ selectMonths: true, // Creates a dropdown to control month selectYears: 15 // Creates a dropdown of 15 years to control year });
从日期选择器中选择日期后,当我们移动到窗口上的下一个选项卡时,再次返回当前窗口时,日期选择器已自动打开.
madalinivasc.. 6
尝试:
$('.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(); } });
http://jsfiddle.net/7ujbv2yz/
尝试:
$('.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(); } });
http://jsfiddle.net/7ujbv2yz/