I have the following code to set the minDate of DatePicker but It does not work.
$( "#arrival_date" ).datepicker('option','minDate',<?php echo $checkin ?>);
$( "#arrival_date" ).datepicker();
Example if the value of $checkin is “7/29/2012”, so the user cannot choose date less than “7/29/2012”.
Any idea on this?
Here a working example: http://jsfiddle.net/ZTnr5/1/
You have to define the datepicker before setting the option and you must quote the date string.