I have 2 checkbox
of person and company, and only a textbox
.
I want to select in% with% of individual, I want to apply the mask to CPF, or when selecting the legal entity, it applies the mask to CNPJ in checkbox
.
I do not know how to apply the mask according to what I selected.