<!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> <link type="text/css" href="jquery.datepick.css" rel="stylesheet"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.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>