I need to have a select load a list of option each time on a previous select change of selection. I know I will use JavaScript to do this, but how?
Follow the code:
<b>Área:</b></td>
<select name="area" id="area">
<option value="Controladoria">Controladoria</option>
<option value="Negócios">Negócios</option>
</select>
<b>Setor:</b>
<select name="setor" id="setor">
<option value="SETOR 1 (CONTROLADORIA OU NEGÓCIOS)">SETOR 1 (CONTROLADORIA OU NEGÓCIOS)</option>
<option value="SETOR 2 (CONTROLADORIA OU NEGÓCIOS)">SETOR 2 (CONTROLADORIA OU NEGÓCIOS)</option>
<option value="SETOR 3 (CONTROLADORIA OU NEGÓCIOS)">SETOR 3 (CONTROLADORIA OU NEGÓCIOS)</option>
<option value="SETOR 3 (CONTROLADORIA OU NEGÓCIOS)">SETOR 4 (CONTROLADORIA OU NEGÓCIOS)</option>
</select>
However, the " Controlling and Business " sectors of the first select are different, and when I select each one in the first, the sectors below appear in the second select.
Thank you in advance for helping me.