Simple Jquery validator method to validate brazilian cpf.
See: http://jsfiddle.net/7TB6r/
- Add JQuery CPF validator on your code:
<script src="jquery.js"></script>
<script src="jquery.validate.js"></script>
<script src="jquery.cpf.validator.js"></script>
- Add 'cpf' class to input text:
<input type="text" name="cpf" id="cpf" class="required cpf" />
- Enjoy!
- Documentation
- Tests
- Github pages
- Refactory?
Fallow-me @the_programer