开发者

jquery MonthYearDropdown

I want show month and year in one dropdown on开发者_Python百科 jQuery datetimepicker above the month/year navbar. Is there any way to do this?


To show month and year you can use default options like this:

$( "#datepicker" ).datepicker({changeMonth: true,changeYear: true});

but if you mean you want to show month and year in single dropdown (like jan-2011, feb-2011) then you will need to hack it and add a new dropdown and fill it will all allowed months-years. You will probably want to set minDate and maxDate values.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜