diff options
Diffstat (limited to 'demos/datepicker/dropdown-month-year.html')
-rw-r--r-- | demos/datepicker/dropdown-month-year.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/demos/datepicker/dropdown-month-year.html b/demos/datepicker/dropdown-month-year.html new file mode 100644 index 000000000..a16ff09a4 --- /dev/null +++ b/demos/datepicker/dropdown-month-year.html @@ -0,0 +1,34 @@ +<!doctype html> +<html lang="en"> +<head> + <title>jQuery UI Datepicker - Display month & year menus</title> + <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> + <script type="text/javascript" src="../../jquery-1.3.1.js"></script> + <script type="text/javascript" src="../../ui/ui.core.js"></script> + <script type="text/javascript" src="../../ui/ui.datepicker.js"></script> + <link type="text/css" href="../demos.css" rel="stylesheet" /> + <script type="text/javascript"> + $(function() { + $('#datepicker').datepicker({ + changeMonth: true, + changeYear: true + }); + }); + </script> +</head> +<body> + +<div class="demo"> + +<p>Date: <input type="text" id="datepicker"></p> + +</div><!-- End demo --> + +<div class="demo-description"> + +<p>Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes. Add the boolean <strong>changeMonth</strong> and <strong>changeYear</strong> options.</p> + +</div><!-- End demo-description --> + +</body> +</html> |