Response title
This is preview!
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$( "#datepicker" ).datepicker({
showOn: "button",
buttonImage: "images/calendar.gif",
buttonImageOnly: true
});
});
</script>
// CALLING
<strong>Departure date</strong><span>*</span>: <input type="text" id="datepicker" name="departuredate"/>
<strong>Return date</strong><span>*</span>: <input type="text" id="datepicker" name="returndate"/> </div>
if you need to use ids - try
$(function() {
$( "#datepicker, #datepicker2" ).datepicker({
showOn: "button",
buttonImage: "images/calendar.gif",
buttonImageOnly: true
});
});</script>
// CALLING
<strong>Departure date</strong><span>*</span>: <input type="text" id="datepicker" name="departuredate"/>
<strong>Return date</strong><span>*</span>: <input type="text" id="datepicker2" name="returndate"/> </div>
© 2013 jQuery Foundation
Sponsored by and others.