Is there a way to not have to write this ‘twice’
See below where the function for #start_date and #end_date is exactly the same.
<script type="text/javascript">
jQuery(function($){
$("#start_date").datepicker({
showButtonPanel: true,
minDate: 1,
dateFormat: 'dd/mm/yy'
});
$("#end_date").datepicker({
showButtonPanel: true,
minDate: 1,
dateFormat: 'dd/mm/yy'
});
});
</script>
http://jsfiddle.net/LWQCE/
Or use a class: