~jstys-z/helioviewer.org/timeline

« back to all changes in this revision

Viewing changes to lib/jquery/jquery.ui-1.7.1/development-bundle/demos/datepicker/min-max.html

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>