Javascript datepicker()无法在我的页面中使用jquery

Javascript datepicker()无法在我的页面中使用jquery,javascript,jquery,datepicker,Javascript,Jquery,Datepicker,您好,下面的代码中datepicker()没有使用jquery工作。但单独使用,它工作正常 在将代码添加到我的页面后,它不起作用。这是我的示例代码 html <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Admission Form</title> <link

您好,下面的代码中datepicker()没有使用jquery工作。但单独使用,它工作正常

在将代码添加到我的页面后,它不起作用。这是我的示例代码

html

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Admission Form</title>

  <link rel="stylesheet" href="css/admissionform.css">
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />

<script src="js/jquery.min.js"></script>

<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />


<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
 <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
  <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <script>
  jQuery(document).ready(function() {
  jQuery('.date-picker').datepicker();
});
  </script>   
        <link rel="stylesheet" href="css/flexslider.css">
</head>
<body>
 <p>Date: <input type="text" id="datepicker"></p>
</body>

入学表格
jQuery(文档).ready(函数(){
jQuery('.date picker').datepicker();
});
日期:


输入元素的ID为datepicker,但您已使用类选择器创建datepicker

<input type="text" id="datepicker">
jQuery('.date-picker').datepicker();
检查控制台是否有错误

您使用了2个jquery文件,这可能会导致一些问题


您有多个对jQuery的调用:

<script src="js/jquery.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>

只保留调用(在使用jQuery之前)。还要检查DevTools控制台是否存在其他错误(如果有)


另外,您有
但是为类选择器调用日期选择器
。日期选择器

您包含在2个不同的jquery中检查它
可能是它彼此冲突,我认为您使用的是“.”而不是“#”。正如我注意到的,“datepicker”是您的元素Id而不是类working@hspcare控制台中有错误吗?删除了重复的jQuery调用?Uncaught TypeError:undefined不是函数Uncaught TypeError:undefined不是函数它给出了此错误
<script src="js/jquery.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>