How to enable the past dates of jQuery inline datePicker?
You need to make sure that the minDate option is null.
example:
$( "#from" ).datepicker( "option", "minDate", null );
Full example:
$( "#from" ).datepicker({
defaultDate: "-6m",
buttonImageOnly: true,
dateFormat: "d MM y",
changeMonth: true,
changeYear: true,
numberOfMonths: 3,
onSelect: function( selectedDate ) {
$( "#from" ).datepicker( "option", "minDate", null );
}
});
What do you think?