0
I need to create a form, where the options OAB REGISTRATION, SECTION and SUBSECTION appear only if the user selects LAWYER as a profession. There is a predefined list of professions. How do I make this block (fieldsAdv) appear only when LAWYER is selected?
<div class="form-group col-xs-12">
<label>Profissão<span class="text-danger">*</span></label>
<select id="listaProfissao" name="Usuario.id_pd_Profissao" class="form-control" required>
<option></option>
</select>
</div>
<div class="hidden" id="camposAdv">
<div class="form-group col-xs-12">
<label>Inscrição OAB<span class="text-danger">*</span></label>
<input type="text" id="ds_inscricaoOab" name="usuario.ds_inscricaoOab" maxlength="200" class="form-control" value="@ViewBag.UsuarioCad.ds_inscricaoOab" required>
</div>
<div class="form-group col-xs-12">
<label>Seção<span class="text-danger">*</span></label>
<input type="text" id="ds_secao" name="usuario.ds_secao" maxlength="200" class="form-control" value="@ViewBag.UsuarioCad.ds_secao" required>
</div>
<div class="form-group col-xs-12">
<label>Subseção<span class="text-danger">*</span></label>
<input type="text" id="ds_subsecao" name="usuario.ds_subsecao" maxlength="200" class="form-control" value="@ViewBag.UsuarioCad.ds_subsecao" required>
</div>
</div>
jquery? javascript?
– user60252
Bruno the environment is technical, avoid putting slang, compliments or subjects technically unrelated to the question.
– Augusto Vasques