datepicker

datepicker

 I am adding jQuery’s datepicker to one of my VS projects and cannot seem to make the onselect event work in the datepicker script function.  I have attached the html .  AlI help is greatly appreciated!
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>


    <title>jQuery Calendar</title>
   <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.custom.css" rel="Stylesheet" /> 
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
   <script type="text/javascript" src="js/jquery-ui-1.8.custom.min.js"></script>

<!--
$('.selector').datepicker({onSelect: function(dateText, inst) {document.write(dateText)}}
-->
   <SCRIPT type=text/javascript> $(function() {  $("#datepicker").datepicker();}); </SCRIPT>
   <DIV class=demo>
   <P>Date: <INPUT id=datepicker></P></DIV><!-- End demo -->
   <DIV class=demo-description style="DISPLAY: none">
   <P>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</P></DIV><!--



</head>
<body>
  <!-- <input type="text" name="date" id="date" /> -->
</body>
</html>