简体   繁体   English

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

[英]why is not working datepicker code

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

.all code is right and work but when 。所有代码都是正确的并且可以工作,但是什么时候
i have use this code in my page then date-picker is not working . 我在我的页面中使用了此代码,所以日期选择器不起作用。 why it's happen plz tell me Where the 为什么会发生,请告诉我在哪里
datepicker should appear? datepicker应该出现? and also 并且
when i have remove this code date-picker code is working and i have not getting what happen so plz tell me what is wrong in here..... 当我删除了此代码后,日期选择器代码正在工作,而我没有得到任何结果,所以请告诉我这里出了什么问题.....

date-picker code here...... 日期选择器代码在这里......

<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>

` `

Try this code 试试这个代码

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM