I have created the following code to build a booking calendar. I would like it so that when I click on submit, it will redirect to a different page by navigating. The function should check if the start date is greater than the current date and the end date is greater than the start date - if true, then navigate to a different page.
Thank you in advance!
<div class="container">
<div class="row-center">
<div class="jumbotron">
<div class="row">
<div class="col-md-4 col-sm-4">
<h4 class="red">Start Date</h4>
<input name="start" type="date" class="form-control " placeholder="Start date">
</div>
<div class="col-md-4 col-sm-4">
<h4 class="red">End Date</h4>
<input name="end" type="date" class="form-control" placeholder="End date">
</div>
<div class="col-md-3 col-sm-2">
<input id="btnOpen" class="btn btn1 btn-success" type="submit" value="Submit">
</div>
</div>
</div>
</div>
</div>