diff options
Diffstat (limited to 'static/development-bundle/demos/datepicker/min-max.html')
-rw-r--r-- | static/development-bundle/demos/datepicker/min-max.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/static/development-bundle/demos/datepicker/min-max.html b/static/development-bundle/demos/datepicker/min-max.html new file mode 100644 index 0000000..06a1776 --- /dev/null +++ b/static/development-bundle/demos/datepicker/min-max.html | |||
@@ -0,0 +1,31 @@ | |||
1 | <!doctype html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <title>jQuery UI Datepicker - Restrict date range</title> | ||
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> | ||
6 | <script type="text/javascript" src="../../jquery-1.3.2.js"></script> | ||
7 | <script type="text/javascript" src="../../ui/ui.core.js"></script> | ||
8 | <script type="text/javascript" src="../../ui/ui.datepicker.js"></script> | ||
9 | <link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
10 | <script type="text/javascript"> | ||
11 | $(function() { | ||
12 | $("#datepicker").datepicker({minDate: -20, maxDate: '+1M +10D'}); | ||
13 | }); | ||
14 | </script> | ||
15 | </head> | ||
16 | <body> | ||
17 | |||
18 | <div class="demo"> | ||
19 | |||
20 | <p>Date: <input type="text" id="datepicker"></p> | ||
21 | |||
22 | </div><!-- End demo --> | ||
23 | |||
24 | <div class="demo-description"> | ||
25 | |||
26 | <p>Restrict the range of selectable dates with the <code>minDate</code> and <code>maxDate</code> options. Set the beginning and end dates as actual dates (new Date(2009, 1 - 1, 26)), as a numeric offset from today (-20), or as a string of periods and units ('+1M +10D'). For the last, use 'D' for days, 'W' for weeks, 'M' for months, or 'Y' for years.</p> | ||
27 | |||
28 | </div><!-- End demo-description --> | ||
29 | |||
30 | </body> | ||
31 | </html> | ||