I'm developing an area where the student will enroll in it, so I decided to get help from libraries like jQuery, I got a good result on this, however there are some errors in my script that I can not identify.
<!Doctype html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.js"></script></head><body><formname="dados" id="dados" method="POST">
<input type="text" id="cpf" name="cpf" placeholder="CPF">
<input type="text" id="telefone" name="telefone" placeholder="Telefone">
<input type="text" id="celular" name="celular" placeholder="Celular">
</form>
</body>
<script>
$(document).ready(function(){
$('#cep').mask('00000-000');
$('#telefone').mask('0000-0000');
$('#celular').mask('00000-0000');
$('#cpf').mask('000.000.000-00', {reverse: true});
$('#rg').mask('00.000.000-00', {reverse: true});
});
</script>
This jQuery Mask is developed by: link
NOTE: My script does not work on the masquerade application mentioned above.