JQuery DatePicker日历不会显示 [英] JQuery DatePicker calendar does not appear
本文介绍了JQuery DatePicker日历不会显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点击我的输入日历不出现....这是我的代码js ...
On click in my input calendar don't appear.... this is my code js...
<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">
我的东西我导入错误的文件...任何建议?
i thing i've imported wrong files... any suggest? ty
推荐答案
包含jquery,jquery ui只能使用jquery
Include jquery ,jquery ui only work with 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
这篇关于JQuery DatePicker日历不会显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文