작동하도록 2 datapicker를 만들고 싶지만 그렇지 않습니다. 내 코드의 모든 내용이 정상이라고 생각하지만 작동하지 않는 이유를 모르겠습니다. 내 코드의 일부입니다 :Datapicker가 작동하지 않습니다.
<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>
당신은이 코드를 잘못 무엇인지 말씀해 주시겠습니까?
유효하지 않은 마크 업 : 동일한 ID를 반복한다. 'id' 대신'class'로 변경하고 위의 스크립트에서'.' 점으로 참조하십시오. – Jai
Note : doctype이나'html' 태그는 없습니다. – Vucko
ID가 같은 두 요소 .. ssilas777 답이 해결책입니다. 수업과 함께 일해라. –