2
I am needing to have a select load an option list each time in a previous select change selection. I know I’ll use Javascript to do this, but how?
Follows 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 sectors of "Controllership" and "Business" of the first select are different, and when I select each one in the first, appear the respective sectors below in the second select.
I appreciate anyone who can help me.
Maybe this question will help you: http://answall.com/questions/14646/como_selectr-uma-op%C3%A7%C3%A3o-em-um-select-e-carregar-related data-in-another? Rq=1
– Richard Dias
It has been a while since it was posted, but it wouldn’t hurt to try. Would it be possible to make a text appear after selecting the 2nd select? For example appear a contact from someone in the sector who was selected. I will adapt to appear a store that resells the product in a certain city. Ex. Choose UF: SP, Choose city: Campinas, and open the contacts of the store that serves in campinas. <! -- Begin snippet: js Hide: false console: false Babel: false --> <!-- language: lang-html --> <!DOCTYPE html> <lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <b>Area:</b></td> <select name=
– Maikon Felipe Borges