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.
精彩评论