Hello all,
I have a dynamic dropdown list box which gets populated based on alue selected from another dropdown listbox.
<td><SELECT Name="to_<%=row%>" size="1" onChange="document.MainForm.testtext.value = this.value;"> <% 'loop through recordset/array of all possible blocks For i = 0 To UBound(rows,2) if rows(COL_Block,i) = Block_ID then response.write("<option selected value='" & rows(COL_To,i) & "'>" & rows(COL_To,i) & "</option>") else response.write("<option value='" & rows(COL_To,i) & "'>" & rows(COL_To,i) & "</option>") end if next %> </SELECT></td> <td><input type="text" name="testtext" size="30"></td>
|
Above code works fine so far.
I also have an input textbox that I would like to have populated based on value selected from code above.
That is not working so far.
What we would like to do is have the ability to enter a value into the textbox if no value is found from the dropdown.
For instance, if we are given a list of values that are supposed to be on the dropdown value but one or more of those values are not found on the dropdown above, we will like to enter the value in the input textbox manually and then submit that value to the database
Is this possible?
I know that you *cannot* have an input text and a dropdown value with same form variable.
Thanks in advance
Edited by simflex