I have a select, and depending on the choice of the same select, a form will be shown to insert a contact. I have to keep in mind that the first option of the select already has the form to be shown by default, that is, the user when the page opens appears the company form. I have 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>