I am currently using HTML 5 date type that pulls down a calendar for a person to select and arrival date. I want to be able to add two days to the departure calendar which is the next field over in my form. Dates are in format mm/dd/yyyy.
To be a bit more clear if someone selects lets say 07/03/2015 from the arrival calendar form field, then I want the next departure field to have 07/05/2015 already in there for them. Hope that makes sense and
Thank you for any help on this.
Sure here is the code: <div class="col-md-4">
<label>Arrival Date *</label>
<input type="date" value="" maxlength="10" class="form-control" name="arrival" id="arrival" required>
</div>
<div class="col-md-4">
<label>Departure Date *</label>
<input type="date" value="" maxlength="10" class="form-control" name="depart" id="depart" required>
</div>