jquery-ui/demos/datepicker/multiple_calendars.html

49 lines
1.5 KiB
HTML
Raw Normal View History

2008-12-30 04:16:51 +00:00
<!doctype html>
<html lang="en">
<head>
2008-12-31 22:16:02 +00:00
<title>jQuery UI Datepicker - Multiple Calendars Demo</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.3.js"></script>
2008-12-30 04:16:51 +00:00
<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" />
2008-12-30 04:16:51 +00:00
<script type="text/javascript">
$(function() {
2009-01-01 00:27:45 +00:00
$('#datepicker').datepicker({
numberOfMonths: 3,
showButtonPanel: true
});
2008-12-30 04:16:51 +00:00
});
</script>
</head>
<body>
<div class="demo">
2008-12-30 04:16:51 +00:00
2009-01-01 00:27:45 +00:00
<p>Date: <input type="text" id="datepicker"></p>
2008-12-30 04:16:51 +00:00
</div><!-- End demo -->
<div class="demo-description">
2009-01-01 00:27:45 +00:00
<p>
This datepicker shows three months at a time by setting the <code>numberOfMonths</code> option to 3.
This can be set to any number that will fit within your layout.
The multiple calendars are used to make it easier to visually scan across months and make a selection.
</p>
<div style="padding: 0pt 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all">
<p>
<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
<strong>Note:</strong>
This is not a date range picker.
In a future release, a custom date range plugin will be added.
For users that want to use the old date range picker built into the datepicker, they must use the previous version of this plugin (v1.5.3).
</p>
</div>
</div><!-- End demo-description -->
2008-12-30 04:16:51 +00:00
</body>
</html>