I'm 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:
$ ("# CPFPeser []")
The input looks 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'm using a form that can be added to extra fields.