aboutsummaryrefslogtreecommitdiffstats
path: root/demos/datepicker/icon-trigger.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/datepicker/icon-trigger.html')
-rw-r--r--demos/datepicker/icon-trigger.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/demos/datepicker/icon-trigger.html b/demos/datepicker/icon-trigger.html
new file mode 100644
index 000000000..b3b43a225
--- /dev/null
+++ b/demos/datepicker/icon-trigger.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Datepicker - Icon trigger</title>
+ <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.1.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({showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: true});
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<p>Date: <input type="text" id="datepicker"></p>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>Click the icon next to the input field to show the datepicker. Set the datepicker to open on focus (default behavior), on icon click, or both.</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>