Skip to content
Browse files

datepicker: added event-search demo, combining various options to sel…

…ect a daterange with two inputs
  • Loading branch information
jzaefferer committed Mar 14, 2009
1 parent c0ea4c1 commit 3c04e76b33f9f9915f6432622f29338a2992432c
Showing with 43 additions and 0 deletions.
  1. +42 −0 demos/datepicker/event-search.html
  2. +1 −0 demos/datepicker/index.html
@@ -0,0 +1,42 @@
<!doctype html>
<html lang="en">
<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 = == "from" ? "minDate" : "maxDate";
dates.not(this).datepicker("option", option, new Date(selectedDate));

<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">

<p>Select the date range to search for.</p>

</div><!-- End demo-description -->

@@ -19,6 +19,7 @@ <h4>Examples</h4>
<li><a href="dropdown-month-year.html">Display month &amp; 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>

0 comments on commit 3c04e76

Please sign in to comment.
You can’t perform that action at this time.