r2292 - datepicker: added event-search demo, combining various options to select a daterange with...
Author: joern.zaefferer
Date: Sat Mar 14 07:26:41 2009
New Revision: 2292
Added:
trunk/demos/datepicker/event-search.html (contents, props changed)
Modified:
trunk/demos/datepicker/index.html
Log:
datepicker: added event-search demo, combining various options to select a
daterange with two inputs
Added: trunk/demos/datepicker/event-search.html
==============================================================================
--- (empty file)
+++ trunk/demos/datepicker/event-search.html Sat Mar 14 07:26:41 2009
@@ -0,0 +1,42 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Datepicker - Display multiple months</title>
+ <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.2.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() {
+ var dates = $('#from, #to').datepicker({
+ defaultDate: "+1w",
+ changeMonth: true,
+ numberOfMonths: 3,
+ onSelect: function(selectedDate) {
+ var option = this.id == "from" ? "minDate" : "maxDate";
+ dates.not(this).datepicker("option", option, new Date(selectedDate));
+ }
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<label for="from">From</label>
+<input type="text" id="from" name="from"/>
+<label for="to">to</label>
+<input type="text" id="to" name="to"/>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+Select the date range to search for.
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
Modified: trunk/demos/datepicker/index.html
==============================================================================
--- trunk/demos/datepicker/index.html (original)
+++ trunk/demos/datepicker/index.html Sat Mar 14 07:26:41 2009
@@ -19,6 +19,7 @@
<li><a href="dropdown-month-year.html">Display month & year
menus</a></li>
<li><a href="multiple-calendars.html">Display multiple months</a></li>
<li><a href="icon-trigger.html">Icon trigger</a></li>
+ <li><a href="event-search.html">Event Search</a></li>
</ul>
</div>