Hello again! I demoed the Datepicker widget on one particular date field and it worked awesomely, but when I tried to apply it to other date fields on the same PHP document, that one Datepicker that I had demoed with is the only one that works. From my previous issue, I have confirmed that my Header works (1st code below), and my Date fields all have either of the last two codes below. I suspect that the error lies in the ID section of the Date input codes (bolded), but my attempts to mimic
this and
this both failed. Can someone help me solve this, and can someone tell me exactly what, if anything, the "name" tag does? (I think I'd added it so that the compiler PHP could identify the different inputs separately, but I forgot.)
- <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/start/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/_layout/stylesheets/members_bulletin_datepicker.css">
<script>
$(function() {
$("#datepicker").datepicker();
});
</script>
- <span>Date: <input type="text" name="Date" id="datepicker" placeholder="mm/dd/yyyy"></span><br>
- <span>Start Date: <input type="text" name="startDate" id="datepicker" placeholder="mm/dd/yyyy"></span><br>
- <span>End Date: <input type="text" name="endDate" id="datepicker" placeholder="mm/dd/yyyy"></span><br>