$(function(){
$('#Appointment_request_group_Best_day').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Appointment_request_group_Best_day
});
});
$(function(){
$('#Appointment_request_group_Best_day').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd-mm-y',
onClose: closeDatePicker_Appointment_request_group_Best_day
});
});
var Appointment_request_group_Best_day_Spry = new Spry.Widget.ValidationTextField("Appointment_request_group_Best_day_Spry", "date", {validateOn:["blur"]});
var Appointment_request_group_Best_day_Spry = new Spry.Widget.ValidationTextField("Appointment_request_group_Best_day_Spry", "date", {validateOn:["blur"], format:'dd-mm-yy'});
I have 5 instances of this in my code. Should I add the code you suggest after each one?
My code is:
$(function(){
$('#Wedding_Date').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Wedding_Date
});
});