Set a max date attribute for date input fields to prevent/discourage them going over 4 characters (client side validation)

This commit is contained in:
Marcus Hill
2022-12-17 18:03:53 +00:00
parent 016d666dda
commit 51792a1a2f
50 changed files with 75 additions and 75 deletions

View File

@@ -19,7 +19,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
</div>
<input type="date" class="form-control" name="date" value="<?php echo $trip_date; ?>" required>
<input type="date" class="form-control" name="date" max="2999-12-31" value="<?php echo $trip_date; ?>" required>
</div>
</div>