jquery-ui/demos/datepicker/default.html

43 lines
1.3 KiB
HTML
Raw Normal View History

2008-12-30 04:16:51 +00:00
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Datepicker - Default Demo</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
2009-01-12 14:52:19 +00:00
<script type="text/javascript" src="../../jquery-1.3pre.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();
2008-12-30 04:16:51 +00:00
});
</script>
</head>
<body>
<div class="demo">
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">
<p>This is a default datepicker which is tied to a standard form input. The calendar opens in a small overlay onFocus and closes automatically onBlur if a date if selected.</p>
<p>You can also use the keyboard to drive the datepicker:</p>
<ul>
<li>page up/down - previous/next month</li>
<li>ctrl+page up/down - previous/next year</li>
<li>ctrl+home - current month or open when closed</li>
<li>ctrl+left/right - previous/next day</li>
<li>ctrl+up/down - previous/next week</li>
<li>enter - accept the selected date</li>
<li>ctrl+end - close and erase the date</li>
<li>escape - close the datepicker without selection</li>
</ul>
</div><!-- End demo-description -->
2008-12-30 04:16:51 +00:00
</body>
</html>