1
I have an input using an example CPF mask :
$("#cpfDependente").mask('000.000.000-00');
and I’m trying to set a value in the input this way
$("#cpfDependente").val(dependente.cpf);
It correctly arrow the problem is that the mask some what the solution of this? I thank you in advance !
Just to top it off, look at one example in jsfiddle. +1 for the answer.
– Randrade
I’ve tried that before but it wasn’t !
– Jose Vieira Neto
You should add the mask in $( Document ).ready(Function() { //Here the mask });
– André Monteiro