/[projects]/misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/datepicker/date-range.html
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/jquery-ui-1.10.3/demos/datepicker/date-range.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (show annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File MIME type: text/html
File size: 1162 byte(s)
initial import
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>jQuery UI Datepicker - Select a Date Range</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.9.1.js"></script>
8 <script src="../../ui/jquery.ui.core.js"></script>
9 <script src="../../ui/jquery.ui.widget.js"></script>
10 <script src="../../ui/jquery.ui.datepicker.js"></script>
11 <link rel="stylesheet" href="../demos.css">
12 <script>
13 $(function() {
14 $( "#from" ).datepicker({
15 defaultDate: "+1w",
16 changeMonth: true,
17 numberOfMonths: 3,
18 onClose: function( selectedDate ) {
19 $( "#to" ).datepicker( "option", "minDate", selectedDate );
20 }
21 });
22 $( "#to" ).datepicker({
23 defaultDate: "+1w",
24 changeMonth: true,
25 numberOfMonths: 3,
26 onClose: function( selectedDate ) {
27 $( "#from" ).datepicker( "option", "maxDate", selectedDate );
28 }
29 });
30 });
31 </script>
32 </head>
33 <body>
34
35 <label for="from">From</label>
36 <input type="text" id="from" name="from"/>
37 <label for="to">to</label>
38 <input type="text" id="to" name="to"/>
39
40 <div class="demo-description">
41 <p>Select the date range to search for.</p>
42 </div>
43 </body>
44 </html>

  ViewVC Help
Powered by ViewVC 1.1.20