2
I am trying to use Jquery.Mask to insert a mask to a field with CPF but it does not work when the field has the following format:
$("#Cpfpessoa[]")
The input is like this:
<input type="text" id="CPFPessoa[]" name="CPFPessoa[]" size="15" class="form-control">
$(document).ready(function () {
var $seuCampoCpf = $("#CPFPessoa[]");
$seuCampoCpf.mask('000.000.000-00', {reverse: true});
});
I need the field to have this format because I am using a form that can be added extra fields.
Thanks @Sam, thank you so much for the great tip.
– adventistapr