开发者

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

开发者 https://www.devze.com 2023-02-13 12:49 出处:网络
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开发者_如

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

精彩评论

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