开发者

option to change jquery ui datepicker to just a "yearpicker"

I'm checking datapicker documentation here trying to find a way to change it from a full display date picker to just something where I can pick a year only. But I can't find anything. I trie开发者_如何学Pythond suggestions found here like this, but it still displays the full view.

.datepicker({changeDay:false, changeMonth:false, changeYear:true})

Can I somehow turn the datapicker to a year picker only?


For my company's website, we used jQuery UI slider instead since year is a single value. In our implementation, we also had to do a year range, a slider also accommodated for that.

http://jqueryui.com/demos/slider/#steps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜