My goal is to invert two position objects when you select an element in the dropdown
Example:
By default, when the page is opened the component dropdown
has two elements "Destination" and "Source"
These components opens a SELECT (Território)
and a DROPDOWN (Pais)
.
When I select in the dropdow (first mentioned) "Destination" and "Import"
the two components SELECT (territorio)
and DROPDOWN (pais)
have to invert, type ... DROPDOWN (pais) ==Direita
and SELECT (territorio)==Esquerda
<tr id="trTerritorioPais" runat="server">
<td>
<b>Territorialidade:</b>
</td>
<td>
<select id="slctTerritorialidade" runat="server" onchange="ExibirTD(this.value)">
<option value="RegiaoBR">Região BR</option>
<option value="UF">UF</option>
<option value="RegPlanMG">Região de Planejamento MG</option>
<option value="MunicipioMG">Município MG</option>
</select>
<b title="Campo Obrigatório"> * </b>
</td>
<td>
<b>País:</b>
</td>
<td>
<asp:DropDownList Width="200px" ID="ddlPais" runat="server">
</asp:DropDownList>
<b title="Campo Obrigatório"> * </b>
</td>
</tr>
It should also be noted that I have values (data) in the database, I need to do this without changing the database.