1
My goal is to invert two position objects when selected an element in the dropdown
Example:
By default, when you open the page the component dropdown
has two elements "Destination" and "Origin"
These components open a SELECT (Território)
and another DROPDOWN (Pais)
.
When I select in dropdow (first mentioned) "Destination" and "Import"
the two components SELECT (territorio)
and DROPDOWN (pais)
you have to reverse, like, ... 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 is also noteworthy that I have values (data) in the database, I need to do this without changing the database.
I notice that the "Selects" you want to invert are in separate "td’s". What you want is to exchange the contents of one "td" for the other?
– Joao Paulo