4
I have a select, and depending on the choice of that same select, a form will be shown to insert a contact. I have to bear in mind that the first option of select already has the form to be shown by default, IE, the user when opening the page appears soon the form company. I got the following:
<select name="id_tipo_contacto" id="id_tipo_contacto">
<option value="1">Contacto empresa</option>
<option value="2">Contacto casamento</option>
</select>
<div id="empresa" style="display:none;">
Mostra formulário empresa
</div>
<div id="casamento" style="display:none;">
Mostra formulário casamento
</div>
Thank you @Sergio!
– pc_oc