Posts by Elton Pereira • 73 points
1 post
-
7
votes4
answers6781
viewsQ: Why does my CNPJ validation pass this invalid value?
I have a problem with a JS validation, in case it does not pass any invalid CNPJ value, but when typed only 000.000.000/0000.00 it lets pass normally. function ValidaCNPJ(cnpj) { var i = 0; var l =…