I have a field where the CPF, CNPJ and Other Document can be written. The field is unmasked, while the "Other Document" can be any number or letter.
How can I make these validations in jQuery
? Make sure the user typed in without a mask or a mask and / or a document.