12345678910111213141516171819202122232425262728293031323334 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <title>jQuery Datepicker</title>
- <style type="text/css">
- @import "jquery.datepick.css";
- </style>
- <script type="text/javascript" src="jquery-1.4.2.js"></script>
- <script type="text/javascript" src="jquery.datepick.js"></script>
- <script type="text/javascript">
- $(function() {
- $('#popupDatepicker').datepick();
- $('#inlineDatepicker').datepick({onSelect: showDate});
- });
-
- function showDate(date) {
- alert('The date chosen is ' + date);
- }
- </script>
- </head>
- <body>
- <h1>jQuery Datepicker</h1>
- <p>This page demonstrates the very basics of the
- <a href="http://keith-wood.name/datepick.html">jQuery Datepicker plugin</a>.
- It contains the minimum requirements for using the plugin and
- can be used as the basis for your own experimentation.</p>
- <p>For more detail see the <a href="http://keith-wood.name/datepickRef.html">documentation reference</a> page.</p>
- <p>A popup datepicker <input type="text" id="popupDatepicker"></p>
- <p>Or inline</p>
- <div id="inlineDatepicker"></div>
- </body>
- </html>
|