3
I wonder if it is possible to make a more complete mask for the date field using this plugin(jQuery-Mask) for example the user manages to put in the month 99 field when in fact the month only goes up to the 12 and in the day field also the same thing manages to put 99 when in fact the maximum would be 31 there is some way to mask it follows the form of website
Excerpt from the code used on the website:
<script type="text/javascript">
$(document).ready(function(){
//dados pessoais
$('#input-custom-field3').mask('00/00/0000');
$('#input-custom-field1').mask('000.000.000-00', {reverse: false});
$('#cnpj').mask('00.000.000/0000-00', {reverse: false});
$('#input-custom-field2').mask('00.000.000-0', {reverse: false});
$('#phone_with_ddd').mask('(00) 0000-0000');
$('#cel_with_ddd').mask('(00) 00000-0000');
//endereço
$('#input-postcode').mask('00000-000');
$('#input-custom-field5').mask('0000000');
});
</script>
You have to use a validation as an add-on. This plugin only follows the mask and has no built-in validation, this is done by another
plugin
– novic
@Virgilionovic you could refer me some plugin that does this?
– Felipe Henrique
I indicated two one that checks the date and the other that can make a validation of several fields, I only put the date that was your main problem in the question.
– novic