jQuery plugin to check if brazilian CPF field is valid
- jQuery >=2 (https://code.jquery.com/jquery-3.1.1.slim.min.js)
- jQuery Mask Plugin >=1.14 (https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.9/jquery.mask.min.js)
- Set a variable called
invalidText
before script call within the invalid text that you want to show when the CPF is invalid - Add
aec-cpf-field
,aec-cpf-btn
andaec-cpf-form
classes to the HTML elements of the CPF field, form submit button and form, respectively.
(Check the example folder)
See LICENSE