Problem with 2 Datepickers On Same Page
I'm new to Datepicker and cannot seem to get 2 Datepickers on one page to work using your example. The first one works but not the second one. This should be simple! Here's the code:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<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();
});
</script>
</head>
<body>
<div>
<p>Start Date: <input type="text" id="datepicker"></p>
</div>
<div>
<p>End Date: <input type="text" id="datepicker"></p>
</div>
</body>
</html