开发者

Datepicker with jQuery

开发者 https://www.devze.com 2022-12-16 12:33 出处:网络
I once saw a datepicker where the month and year wher开发者_JS百科e in 1 (and the same) select box, how do I do this (with options/hardcoding) The css file also gives a clue of this possibility (selec

I once saw a datepicker where the month and year wher开发者_JS百科e in 1 (and the same) select box, how do I do this (with options/hardcoding) The css file also gives a clue of this possibility (select.ui-datepicker-month-year) so does anybody know the answer ?

And also, I know you can show the first/last days of the next/previous month as well, but these are standard not selectable, it is possible to make these selectable? (How?)

Thanks in advance.


The jQuery UI Site has these examples for you, with complete code as well: Display month & year menus

Basically it boils down to a few options set on the date picket:

$(function() {
    $('#datepicker').datepicker({
        changeMonth: true,
        changeYear: true
    });
});
0

精彩评论

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