How do I <input type="text" name="calendar" id="calendar">
accept only correct dates, example of a correct date 01/02/2017 but it is accepting when you type 01/20/2017, ie month 20 does not exist, type
of <input>
must continue with "text", follow the example with the problem.
$(document).ready(function(){
$('#calendar').mask('99/99/9999');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js"></script>
<input type="text" id="calendar" name="calendar">