aboutsummaryrefslogtreecommitdiffstats
path: root/demos/datepicker/default.html
blob: 579b19f838d8d179bc147b2b7755e355c365c476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!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" />
	<script type="text/javascript" src="../../jquery-1.3.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() {
		$("#datepicker").datepicker();
	});
	</script>
</head>
<body>

<div class="demo">

<p>Date: <input type="text" id="datepicker"></p>

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

</body>
</html>