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.co开发者_高级运维m/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});
});
精彩评论