datepickBasic.html 1.2KB

1234567891011121314151617181920212223242526272829303132
  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. <link type="text/css" href="jquery.datepick.css" rel="stylesheet">
  7. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  8. <script type="text/javascript" src="jquery.datepick.js"></script>
  9. <script type="text/javascript">
  10. $(function() {
  11. $('#popupDatepicker').datepick();
  12. $('#inlineDatepicker').datepick({onSelect: showDate});
  13. });
  14. function showDate(date) {
  15. alert('The date chosen is ' + date);
  16. }
  17. </script>
  18. </head>
  19. <body>
  20. <h1>jQuery Datepicker</h1>
  21. <p>This page demonstrates the very basics of the
  22. <a href="http://keith-wood.name/datepick.html">jQuery Datepicker plugin</a>.
  23. It contains the minimum requirements for using the plugin and
  24. can be used as the basis for your own experimentation.</p>
  25. <p>For more detail see the <a href="http://keith-wood.name/datepickRef.html">documentation reference</a> page.</p>
  26. <p>A popup datepicker <input type="text" id="popupDatepicker"></p>
  27. <p>Or inline</p>
  28. <div id="inlineDatepicker"></div>
  29. </body>
  30. </html>