在使用 jQuery 日历的 asp.net 中单击文本框后,我没有得到日历
本文关键字:日历 文本 单击 jQuery asp net | 更新日期: 2024-09-21 11:52:01
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
这是我关注的链接https://jqueryui.com/datepicker/http://www.aspdotnet-suresh.com/2012/04/jquery-ui-datepickercalendar-example-in.html
<!--dates link-->
<script>
$(function () {
$("#datepicker").datepicker();
});
$(function () {
$("#datepicker1").datepicker();
});
</script>
<script>
问题是单击文本框时不显示日历,并且在句点(.( 后没有名为 Datepicker 的属性
<p>From: <input type="text" id="datepicker"></p>
<p>To: <input type="text" id="datepicker1"></p>
您的代码就像一个魅力,没有发现任何问题。查看 jsbin.com 以查看您的代码。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function () {
$("#datepicker").datepicker();
});
$(function () {
$("#datepicker1").datepicker();
});
</script>
<title>JS Bin</title>
</head>
<body>
<p>From: <input type="text" id="datepicker"></p>
<p>To: <input type="text" id="datepicker1"></p>
</body>
</html>