开发者

Datepicker with jQuery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜