Jquery UI Datepicker select date range between Two days
$( "#start_date" ).datepicker({
minDate: new Datenew Date(1999, 10 - 1, 25),
maxDate: new Datenew Date(1999, 10 - 1, 30),
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#end_date" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#end_date" ).datepicker({
minDate: new Datenew Date(1999, 10 - 1, 25),
maxDate: new Datenew Date(1999, 10 - 1, 30),
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#start_date" ).datepicker( "option", "maxDate", selectedDate );
}
});