[英]jQuery calendar, doesn't work properly
I try to implement jQuery calender at my homepage: This is the way I do it: 我尝试在主页上实现jQuery日历:这是我的方法:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<script src="jquery-1.7.1.js"></script>
<script src="jquery.ui.core"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.datepicker.js"></script>
<script src="core.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<body>
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div>
</body>
</html>
In the same folder I have all the javascripts that are required. 在同一文件夹中,我具有所有必需的javascript。 But when I try to click inside the form, no calendar is showing.
但是,当我尝试单击表单内部时,没有显示日历。 Why?
为什么? Thanks!
谢谢!
each script should have : 每个脚本应具有:
<script src="xxx" type="text/javascript">
also add this line and tell what it says : 还添加此行,并告诉它说了什么:
<script type="text/javascript">
$(function() {
alert('1');
});
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.