Hello I have created a booking form with html and can’t find how to make it so that the check out datepicker value always be the next day that is selected on the check in datepicker.
I have already tried to input the date of the check in datepicker to a var and print it to the value of the date picker but didn’t work.
I will be placed on a wordpress shortcode widget.
This is the one of the codes I have tried.
<html>
<body>
<form method="get">
<script type="date/javascript">
var indate = document.getElementById(Check_In_Date);
var outdate = document.setElementById(Check_Out_Date);
outdate.value="indate";
</script>
<font>      Check In Date             Check Out Date                <br></font>
              
<input type="date" name="checkin" id="Check_In_Date" value="2022-05-16" >
<input type="date" name="checkout" id="Check_Out_Date" value="outdate">
<select name="adults">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<select name="children">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<input type="submit" value="Search">
</form>
<body>
</html>