为什么不使用日期选择器代码


why is not working datepicker code

<?php include('include_navigation.html');?>

.所有代码都是正确的并且有效,但当
我用过这个代码在我的页面中,日期选择器不起作用。为什么会发生,请告诉我
在哪里日期选择器应该出现吗?以及
当我删除此代码时,日期选择器代码正在工作,而我没有得到什么所以请告诉我这里出了什么问题。。。。。

此处的日期选择器代码。。。。。。

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness
/jquery-ui.css" />
   <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
   <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
   <link rel="stylesheet" href="/resources/demos/style.css" />
  <style>
    .datepicker{
     }
   </style>
    <script>
    $(function() {
    $( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });
       </script>

 html code
     <tr>
    <td>Admission Date</td>
    <td height="48">:</td>
    <td height="48"><label><input type="text" name="AD_DT" id="AD_DT"   
          class="datepicker" style="width:80px;" /></label></td>
      </tr>

`

尝试此代码

$(document).ready( function() {
$( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
});