开发者

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});
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜