<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>