2014-09-11 45 views
-2

在点击我的日历输入没有出现....这是我的js代码...JQuery的DatePicker的日历不会出现

<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css" /> 
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script> 
<script> 
    $(function() { 
    $("#dp1").datepicker(); 
    }); 
</script> 

,这是我的HTML

<input type="text" id="dp1"> 

我的东西我输入错误的文件...任何建议? TY

+0

您还没有主要的jquery.js文件的工作。 – 2014-09-11 10:22:28

+0

哪里可以找到它? – Motosega 2014-09-11 10:23:44

+0

here - http://jquery.com/download/ – Anonymous 2014-09-11 10:24:50

回答

2

包括jQuery的,jQuery UI的只用jQuery

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
    <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css" /> 
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script> 
<script> 
    $(function() { 
    $("#dp1").datepicker(); 
}); 
</script> 

Fiddle

+0

现在它工作.. thx – Motosega 2014-09-11 10:57:19