source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/demos/datepicker/min-max.html@ 24245

Last change on this file since 24245 was 24245, checked in by sjb48, 13 years ago

Oran code for supporting format changes to document.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
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.4.1.js"></script>
7 <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
9 <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
10 <link type="text/css" href="../demos.css" rel="stylesheet" />
11 <script type="text/javascript">
12 $(function() {
13 $("#datepicker").datepicker({minDate: -20, maxDate: '+1M +10D'});
14 });
15 </script>
16</head>
17<body>
18
19<div class="demo">
20
21<p>Date: <input type="text" id="datepicker"></p>
22
23</div><!-- End demo -->
24
25<div class="demo-description">
26
27<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>
28
29</div><!-- End demo-description -->
30
31</body>
32</html>
Note: See TracBrowser for help on using the repository browser.