http://www.frostjedi.com/terra/scripts/demo/jquery-datepicker.html
如果您在文本区域外部单击并在其内部重新单击,则会出现一个日历。如何让它在页面首次加载时出现?
谢谢!
最佳答案
$(function() {
$('#datepicker').datepicker('show');
});
这将为您提供日期选择器,而无需设置焦点。
关于javascript - 默认情况下,如果焦点移至jquery datepicker,则不会激活它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12733147/