irt.org FAQ Knowledge Base Q23
Roger Rudder on June 22, 2000 at 08:54:02:
Very worth reading
This is code from one
of your pages. It works fine in
Internet Explorer but how would
you get it to work in netscape?
In this example there are two forms within the same document called formName1 and formName2. Within formName1 there is a drop down select list called selectName1 and within formName2 there are two text box fields called textboxName1 and textboxName2
There are various events we could utilise to pass the value or text from the selected option to the text box, e.g. onClick, onChange, onFocus, onBlur and onClick.
In this example I shall use the onChange event to trigger the setForm2Value() function which will change the value of the two text boxes to the value and text of the selected option:
<SELECT NAME="selectName1" onChange="setForm2Value()">
<OPTION VALUE="wide awake">Sleepy
<INPUT TYPE="TEXTBOX" NAME="textboxName1" VALUE="" SIZE=10>
<INPUT TYPE="TEXTBOX" NAME="textboxName2" VALUE="" SIZE=10>
Other feedback on 'irt.org FAQ Knowledge Base Q23' - show all