OnChange of Dropdown - Write value of adjacent column to page
Posted on 2003-02-22
Upon making a selection from a dropdown menu, which selects a value from a table in a recordset....I want to write the value (say, in a text box in form) contained in another column in the selected record.
Columns in recordset are:
ID | Model | Color
code for dropdown:
<select name="Model" class="textboxes" id="select" title="<%=(rsModels.Fields.Item("Model").Value)%>">
I think I should be able to insert an onChange event handler inside this select tag and write (to a text box)
where the value of "Color" that corresponds to this "Model" but can't get syntax right.