Posts by cgt dev • 51 points
2 posts
-
2
votes4
answers12782
viewsA: Validation of CNPJ with Angularjs
1) Extract numbers using rgex var cnpj = $("#input-cnpj").value; cnpj = cnpj.replace(/[^\d]+/g,''); 2) validate the extracted value using the function below reference:…
-
3
votes5
answers24461
viewsA: Using jQuery Validation Engine and CPF validation
Very simple function removed from http://geradorderg.com/logica-verificador-de-cpf/ To use, just send the numeric value of the CPF. function validarCPF(input_cpf){ //get input if(input_cpf){ var…