Posts by Jefferson • 31 points
1 post
-
3
votes1
answer8628
viewsQ: Mask to validate CPF and CNPJ in the same field with jQuery
I need to validate CPF and CNPJ in the same field with jQuery. I tried this code I saw here on the site but it didn’t work: $("#cpfcnpj").keydown(function(){ try { $("#cpfcnpj").unmask(); } catch…