Как добавить сообщение для проверки в мой инструмент выбора даты? В настоящее время это работает, но не дает ответа пользователю, поэтому я хочу, чтобы сообщение гласило: «Вы должны быть старше 13 лет, чтобы зарегистрироваться».
HTML
<!-- Birth Date -->
<div class="form-row">
<div class="form-group floating-label col-md-6">
<label>Date of Birth</label>
<input id= "date" type="text" name="date"
class="form-control" placeholder="MM/DD/YYYY" required=""/>
</div>
JS
<script>
$(document).ready(function(){
var date_input=$('input[name="date"]');
var container=$('.form-horizontal').length>0 ? $('.form-horizontal').parent() : "body";
date_input.datepicker({
format: 'mm/dd/yyyy',
endDate: '-13y',
container: container,
todayHighlight: true,
autoclose: true,
orientation: "top",
})
});
</script>