I have 2 textboxes: StartDate and endDate
How can I make so the user will be able to pick from the endDate only the dates starting from the startDate text box and ending 24 hours after the startDate?
I tried this but it didnt work:
$("#startDate").change(function() {
test = $(this).datepicker('getDate');
$("#endDate").datepicker("option", "minDate", test);
});
Thanks in advance!
Greg
You can set the
minDateto 1 day later than the chosen#startDatelike this:You can test it out here.