-2
I have a field where you can write the CPF, CNPJ and Other Document. The field is no mask, while the "Other Document" can be any number or letter.
How can I make these validations in jQuery
? Check if the user typed without mask or mask and/or if it is a document.
In that reply has an example of how to know if was inserted the CPF or CNPJ. Just adapt for Javascript.
– Renan Gomes