Monday, March 20, 2017

How do I link two input fields of type date?

I have two input fields:
<input name="check_in" type="date" class="checkin"> and
<input name="check_out" type="date" class="checkout"
I want to link them so when i pick a date from check_in field i can only pick the current day or a later day (earlier days disabled). After that I have to choose a day in the check_out field and i can only choose the day chosen in check_in or a later day (Other days have to be disabled)

I have been trying several solutions and code snippets but with no result



via Ardit Mata

Advertisement