rabisco
MIS
- Jan 4, 2007
- 21
I am attemting to update multiple textboxes with the value of a selected option in multiple list boxes. Each list box has a text box next to it.
My code is a follows.....
<td>
<SELECT
name="excelValues" onChange="document.frmMap.columnValue.value=this.options[this.selectedIndex].text">
<OPTION>None</OPTION>
<% for X = 0 To miaRecordSet.Count - 1 %>
<OPTION><%= miaRecordSet.Item(X).Name %></OPTION>
<%
Next
%>
</SELECT>
</td>
<td>
<input readonly="readonly" name="columnValue" class="MediumText"></input>
</td>
<%
next
%>
The listbox is created by another for each loop further up the page. so , for 5 elements found in a database, 5 options get created. Now I need to populate each text box, with the value of the selected option in the list box.
Any help would be appraciated.
My code is a follows.....
<td>
<SELECT
name="excelValues" onChange="document.frmMap.columnValue.value=this.options[this.selectedIndex].text">
<OPTION>None</OPTION>
<% for X = 0 To miaRecordSet.Count - 1 %>
<OPTION><%= miaRecordSet.Item(X).Name %></OPTION>
<%
Next
%>
</SELECT>
</td>
<td>
<input readonly="readonly" name="columnValue" class="MediumText"></input>
</td>
<%
next
%>
The listbox is created by another for each loop further up the page. so , for 5 elements found in a database, 5 options get created. Now I need to populate each text box, with the value of the selected option in the list box.
Any help would be appraciated.