开发者

jQuery UI - Custom widget - Datepicker to Whole Year Calendar

开发者 https://www.devze.com 2023-04-09 14:58 出处:网络
i want to display whole 开发者_C百科year with jquery ui. is it possible to cut down the code to just whole year Calender?

i want to display whole 开发者_C百科year with jquery ui. is it possible to cut down the code to just whole year Calender?

jQuery UI - Custom widget - Datepicker to Whole Year Calendar


Set the "defaultDate" to the 1th of january, and then set "numberOfMonths" to 12.

http://jqueryui.com/demos/datepicker/#multiple-calendars

Edit: you don't have to set the defaultDate to 1th of january, it depends on the date you want the calender to start.

0

精彩评论

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