Calendarfunction with two dates. I want the selection of the first date to also set the second date one day later.
I have a page with two dates, an arrival date and a departure date. You can click the calendar-icon next to the datefields to set a date. What I want is to, when you set the arrival date, automatically set the departure date to one day later than the arrival date. However, if the departure date already is greater than arrival date then the departure date should not be changed.