Imagine that I had a form where I wanted to have a "rent date" and a "return date".
I want to use the calendar to make a pick.
However, my code is not working. I think it has something to do with both of them having same id but i do not want to rewrite a whole load of new CSS for each one that I need to use (around 4 currently).
<script type=”text/javascript”>
jQuery(document).ready(function(){
$( "#datepicker" ).datepicker();
$( "#datepicker" ).datepicker2();
});
</script>
<div class="demo">
<p>Date: <input id="datepicker" class="datepicker" type="text"></p>
</div> <!-- End demo -->
<div class="demo">
<p>Date: <input id="datepicker" class="datepicker" type="text"></p>
</div> <!-- End demo -->