[英]JQuery Mobile ui-datepicker go to specific month onload
How can I go to a specific month when the document loads please? 如何在文档加载时转到特定月份?
Here is the link to it: 这是它的链接:
http://jquerymobile.com/test/experiments/ui-datepicker/ http://jquerymobile.com/test/experiments/ui-datepicker/
Thanks 谢谢
Something like this (not tested) 像这样的东西(未经测试)
$(document).ready(function() {
var queryDate = new Date(2011,5,1,0,0,0); // 1st of June 2011
$('#date').datepicker({defaultDate: queryDate});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.