1
I’m doing a CNPJ validation of Latin American countries.
I don’t really understand the Regex
and would like help to validate the following rule:
3 digits, 6 Numbers (YYMMDD), 3 digits (like P&G 851223B24)
The field has to accept 3 digits + 6 numbers + 3 digits and I’m doing with jquery like this:
$('.cnpj-mask_3061').mask('AAA000000aaa', defOptions);
Note: Mexico did not work.
You need to apply a mask or validate the information?
– Edson Horacio Junior
The method
mask()
is not suitable for validation. It is merely to create a formatting, a mask.– Daniel Omine