7
I would like to know what I am doing wrong. I am using this plugin https://github.com/igorescobar/jQuery-Mask-Plugin to try to apply a cpf mask (need to be through CDN) but when I enter the data in the field, nothing happens. Follow my head where I import the CDNS:
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.12/jquery.mask.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.12/jquery.mask.min.js"></script>
Javascript function:
<script>
//Mascara CPF
$(document).ready(function(){
$('#paramCpf').mask('999.999.999-99');
});
</script>
My field of CPF:
<TR>
<TD> <b>CPF</b> </TD>
<TD> <INPUT type="text" name="paramCpf" id="paramCpf" value=""> </TD>
</TR>
Are you importing jQuery ? not the mask plugin, the same jQuery, are different things
– AnthraxisBR