I have a form with a radio button with Individual and legal entity. I want that if the physical person button is selected change the label attribute of the html to CPF otherwise CNPJ, and apply the masks according to the selection.
I did not find anything specific about. I'm trying to do with PHP.
Is it possible to do this with PHP or just with JS?