| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>jQuery UI Datepicker - Icon trigger</title> |
| 7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 | <link rel="stylesheet" href="../demos.css"> |
| 9 | <script src="../../external/requirejs/require.js"></script> |
| 10 | <script src="../bootstrap.js"> |
| 11 | $( "#datepicker" ).datepicker({ |
| 12 | showOn: "button", |
| 13 | buttonImage: "images/calendar.gif", |
| 14 | buttonImageOnly: true, |
| 15 | buttonText: "Select date" |
| 16 | }); |
| 17 | </script> |
| 18 | </head> |
| 19 | <body> |
| 20 | |
| 21 | <p>Date: <input type="text" id="datepicker"></p> |
| 22 | |
| 23 | <div class="demo-description"> |
| 24 | <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> |
| 25 | </div> |
| 26 | </body> |
| 27 | </html> |