1
I’m using the plugin Inputmask, the following JS code
$("input[id*='cpfcnpj']").inputmask({
mask: ['999.999.999-99', '99.999.999/9999-99'],
keepStatic: true
});
Man input
is taking the mask of Cpf, but is locked into it. When it reaches the 11 digits, it does not enable the cnpj.
Hello Matheus, could edit your question and add which plugin you are using?
– Randrade
Hello Mathes, all right? You don’t need to change the title stop SOLVED, just accept the answer that helped you by clicking on sure sign below the score. Do not forget that you can also vote (arrow up) on the answers that were useful to you. Remembering that you can always visit the [tour] to better understand the sites.
– Randrade
Thank you Randrade, I am not very acotumado to use, still learning, but thank you very much for the information
– matheus.paulo93