I am attempting to let users input two different dates. I figure it is easiest to use a datepicker, and jQuery Datepicker works perfectly fine, so I decided to use that. My problem is that the second input will not pop up the calendar when clicked, as it is supposed to. Why won't the second input pop up the calendar?
Link to jQuery Datepicker here
My Form:
<?php require("variables.php"); ?>
<div align="center">
span style="font-size:60px;">
enter>Audit Miles Update Page</center>
</span>
<form method="post" action="UpdateInfo_AM.php">
<span style="font-size:40px;">
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<p>As Of: <input type="date" name="AM_updated" id="datepicker"></p>
<p>Week: <input type="date" name="AM_week" id="datepicker"></p>
<u>Issued:</u> <input name="AM_issued" type="number" value= "<?php echo $row['AM_ISSUED']; ?>"; /><br/>
<u>Completed:</u> <input name="AM_completed" type="number" value="<?php echo $row['AM_COMPLETED']; ?>";/> <br/>
<input type="submit" value="Submit" />
</form>
</div>