显示月份和年份选择下拉框
changeMonth 和changeYear 选择可以打开和关闭月份和年份下拉选择框。
4 |
< meta charset = "utf-8" />
|
5 |
< title >jQuery UI Demos</ title >
|
6 |
< link rel = "stylesheet" href = "themes/trontastic/jquery-ui.css" />
|
7 |
< script src = "scripts/jquery-1.9.1.js" ></ script >
|
8 |
< script src = "scripts/jquery-ui-1.10.1.custom.js" ></ script >
|
11 |
$("#datepicker").datepicker({
|
21 |
< input type = "text" id = "datepicker" />
|
![20130319002](http://www.imobilebbs.com/wordpress/wp-content/uploads/2013/03/2013031900%EF%BC%92.png)
显示多个月份
选项numberOfMonths 可以用控制同时显示几个月份:
2 |
$( "#datepicker" ).datepicker({
|
![20130319003](http://www.imobilebbs.com/wordpress/wp-content/uploads/2013/03/20130319003.png)