есть 2 селектора в зависимости что было выбрано на одном я хочу заполнять другой как мне это сделать? dim mode dolzhno opredelit' chto bilo selected
| Код | dim count count = 0 dim mode if isArray(sList) then for i = 0 to ubound(sList, 2) sName = sList(0, i) sUIName = sList(1, i) isSelected = sList(2, i) deviceName = sList(3, i) if isSelected = 1 then if (count = 0) then
%> <tr> <td class="labelText">Name</td> <td class="labelText">VUser</td> <td class="labelText">Devices</td> </tr> <% count = count+1 end if %> <tr> <td><%= sUIName %></td> <td><select class="selectText" id="" name="" checkChanges="true" value="<%=VUerName%>" originVal="<%=VUerName%>"/> <option value="1">LocalDevice</option> <option value="">Stam</option> <td><select class="selectText" id="regName_<% =i %>" name="regName_<% =i %>" checkChanges="true" value="<%= deviceName %>" originVal="<%= deviceName %>"> <option value=""></option> <% if isArray(aList) then for y = 0 to ubound(aList, 2) if mode= -1 then// тут должно бить условие определяющее selected dName = aList(0, y) end if %> <option value="<%= dName %>" <%if dName = deviceName then Response.Write("selected")%>><%= dName %></option> <% next end if %> </select></td> </tr> <% end if next %>
|
|