寻找JavaScript Month Picker [英] In search of JavaScript Month Picker
问题描述
我正在寻找一个JavaScript月份选择工具。我已经在网站上使用jQuery了,所以如果它是一个jQuery插件,那就很合适了。我也对其他选项持开放态度。
基本上,我正在使用
I'm in search of a JavaScript month selection tool. I'm already using jQuery on the website, so if it were a jQuery plugin, that would fit nicely. I'm open to other options, as well.
Basically, I'm after a simplified version of the jQuery UI Date Picker. I don't care about the day of the month, just the month and year. Using the Date Picker control feels like overkill and a kludge. I know I could just use a pair of select boxes, but that feels cluttered, and then I also need a confirmation button.
I'm envisioning a grid of either two rows of six columns, or three rows of four columns, for month selection, and current and future years across the top. (Maybe the ability to list a few years? I can't see anyone ever needing to go more than a year or two ahead, so if I could list the current and next two years, that would be swell.)
It's really just a dumbed down version of the DatePicker. Does something like this exist?
To anyone still looking forward into this (as I was), here is an beautiful, easy to use, jQuery UI compatible, well documented, tested alternative:
Its default usage is simple as doing the following:
$("input[type='month']").MonthPicker();
这篇关于寻找JavaScript Month Picker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!