I have declared a date picker instance as follows:
$("#datePickerId").datepicker(
{ dateFormat: 'DD, d MM yy',
minDate: 0,
showOn: 'button',
buttonImage: '../../images/calendar.gif',
buttonImageOnly: true,
hideIfNoPrevNext: true
}
);
I now want to change to the minDate option so I do this:
$('#datePickerId').datepicker('option', 'minDate', 3);
But nothing happens. Was I suppose to do anything else? What other possible causes could there be?