how to select an option with javascrpt
Two part question here, hopefully they are both tiny.
Lets say I have something really simple like a text field and a select/option combobox.
I want to change the combobox to 'other' anytime the text in the textbox changes.
for the next part, I also want the combobox to update the text field with the VISIBLE selection, but keep the VALUE as being the number (mysql unique key)
<input size="10" type="text" id="itemtext">
<select size="10" align="left" id="itemcombo" style="width:20em;">
I already made the combobox update the textfield with onchange="itemtext.value=this.value", but this changes the textbox to the value field. Is the visible text as easy to get at?
Thank you, and sorry for the newbie questions.