Daniel said the following on 7/13/2007 11:39 PM:
Hello,
Could someone show me the code required to pass the index of the
selected option of a select control to an input textbox. For some
reason I just can't seem to get it to work.
<sighNothing like doing homework.
<form>
<select onchange="this.form.thatInput.value=this.selectedI ndex">
<option value="...">Something
.........
<option value="...">Something else
</select>
<input type="text" name="thatInput">
</form>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/