| 1 | <!doctype html>
|
| 2 | <html lang="en">
|
| 3 | <head>
|
| 4 | <title>jQuery UI Datepicker - Icon trigger</title>
|
| 5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
| 6 | <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
|
| 7 | <script type="text/javascript" src="../../ui/ui.core.js"></script>
|
| 8 | <script type="text/javascript" src="../../ui/ui.datepicker.js"></script>
|
| 9 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
| 10 | <script type="text/javascript">
|
| 11 | $(function() {
|
| 12 | $("#datepicker").datepicker({showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: true});
|
| 13 | });
|
| 14 | </script>
|
| 15 | </head>
|
| 16 | <body>
|
| 17 |
|
| 18 | <div class="demo">
|
| 19 |
|
| 20 | <p>Date: <input type="text" id="datepicker"></p>
|
| 21 |
|
| 22 | </div><!-- End demo -->
|
| 23 |
|
| 24 | <div class="demo-description">
|
| 25 |
|
| 26 | <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>
|
| 27 |
|
| 28 | </div><!-- End demo-description -->
|
| 29 |
|
| 30 | </body>
|
| 31 | </html>
|