KBG*_*KBG 2 javascript jquery jquery-ui
需要进行哪些更改才能首先显示年度下拉列表,然后将月份下拉列表显示为jQuery中的第二个字段,以便用户可以选择他们出生的那一年,然后选择该年份的月份.我们仍然希望限制该日历无法显示比今天更大的日期.
如果用户选择2011,则不应允许他们选择比今天更大的日期.
小智 14
我也在寻找这个并且到了这里但没有解决方案所以我进入jquery-ui.custom.min.js并找到了一个选项.如下.希望它有所帮助,虽然它有点晚..
$( "#datepicker_id" ).datepicker({
showOn: "button",
buttonImage: "images/calendar.png",
buttonImageOnly: true,
dateFormat:'mm-dd-yy',
changeYear: true,
changeMonth: true,
showMonthAfterYear: true, //this is what you are looking for
maxDate:0
});
Run Code Online (Sandbox Code Playgroud)
但是如果你发现它已经在这里发布了:)
| 归档时间: |
|
| 查看次数: |
6195 次 |
| 最近记录: |