我想让 2 个数据选择器工作,但他们没有。我认为我的代码中的一切都很好,但我不知道为什么它不起作用。我的代码有一部分:
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<body>
<table>
<tr>
<td>Data1 :
<input type="text" id="datepicker"></td>
<td>Data2 :
<input type="text" id="datepicker"></td>
</tr>
</table>
<button>Next</button>
</body>
你能告诉我这段代码有什么问题吗?