datepickBasic.html 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  5. <title>jQuery Datepicker</title>
  6. <style type="text/css">
  7. @import "jquery.datepick.css";
  8. </style>
  9. <script type="text/javascript" src="jquery-1.4.2.js"></script>
  10. <script type="text/javascript" src="jquery.datepick.js"></script>
  11. <script type="text/javascript">
  12. $(function() {
  13. $('#popupDatepicker').datepick();
  14. $('#inlineDatepicker').datepick({onSelect: showDate});
  15. });
  16. function showDate(date) {
  17. alert('The date chosen is ' + date);
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <h1>jQuery Datepicker</h1>
  23. <p>This page demonstrates the very basics of the
  24. <a href="http://keith-wood.name/datepick.html">jQuery Datepicker plugin</a>.
  25. It contains the minimum requirements for using the plugin and
  26. can be used as the basis for your own experimentation.</p>
  27. <p>For more detail see the <a href="http://keith-wood.name/datepickRef.html">documentation reference</a> page.</p>
  28. <p>A popup datepicker <input type="text" id="popupDatepicker"></p>
  29. <p>Or inline</p>
  30. <div id="inlineDatepicker"></div>
  31. </body>
  32. </html>