Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我的Jquery日期选择器不工作_Javascript_Jquery - Fatal编程技术网

Javascript 我的Jquery日期选择器不工作

Javascript 我的Jquery日期选择器不工作,javascript,jquery,Javascript,Jquery,我的代码不工作。当我点击我的输入框时,onclick日历没有出现。我想可能有使用onclick功能。但我不能。请帮帮我 这里是一个基本示例,看看所需的脚本,包括jQuery和jQuery ui。资料来源: 1.您确定已经加载了jquery ui吗注意:不仅仅是jquery?2.错误控制台说什么?3.是否确定$'datepicker'已解析为元素?需要添加对jquery ui的引用。基本jquery发行版中不包括datepicker控件。请对新玩家保持优雅。我们都曾经去过那里,伙计们。别再投票了,

我的代码不工作。当我点击我的输入框时,onclick日历没有出现。我想可能有使用onclick功能。但我不能。请帮帮我

这里是一个基本示例,看看所需的脚本,包括jQuery和jQuery ui。资料来源:


1.您确定已经加载了jquery ui吗注意:不仅仅是jquery?2.错误控制台说什么?3.是否确定$'datepicker'已解析为元素?需要添加对jquery ui的引用。基本jquery发行版中不包括datepicker控件。请对新玩家保持优雅。我们都曾经去过那里,伙计们。别再投票了,伙计,潜伏着呻吟。张贴前请阅读规则。在假设自己无法解决问题之前,请阅读文档并学习调试器101。我们都曾经这样做过。
<!doctype html> 
    <html lang="en"> 
       <head> 
          <meta charset="utf-8"> 
          <script  src="jquery-1.11.1.min.js"></script> 
          <script type="text/javascript"> 
             $(document).ready(function() { 
                $( "#datepicker" ).datepicker(); 
             }); 
          </script> 
       </head> 
       <body> 
          <p>Date: <input type="text" id="datepicker"></p> 
       </body>
    </html>
<!doctype html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>jQuery UI Datepicker functionality</title>
      <link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
      <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
      <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
      <!-- Javascript -->
      <script>
         $(function() {
            $( "#datepicker-13" ).datepicker();
            $( "#datepicker-13" ).datepicker("show");
         });
      </script>
   </head>
   <body>
      <!-- HTML --> 
      <p>Enter Date: <input type="text" id="datepicker-13"></p>
   </body>
</html>