This message was edited by zibadian at 2006-9-1 13:33:47
: nope didnt work
:
: all i want to do is change the values of the text box depending on the selction from the drop menu
:
:
: <body>
: <form action="">
: <select onchange="if (this.selectedIndex==1){this.form['box'].style.visibility='visible'}
: else {this.form['box'].style.visibility='hidden'} ;
: if (this.selectedIndex==1){this.form['box2'].style.visibility='visible'}
: else {this.form['box2'].style.visibility='hidden'} ;">
:
:
: <option value="">UNITS ON HAND</option>
: <option value="">80</option>
: <option value="">100</option>
: <option value="">125</option>
: <option value="">135</option>
: <option value="">135</option>
: </select>
: <input style="visibility:hidden;" type="text" name="box" size="20" value="27">
: <input style="visibility:hidden;" type="text" name="box2" size="20" value="$117,990">
:
:
: </form>
: </body>
:
: </html>
:
This example might help:
http://www.w3schools.com/htmldom/coll_select_options.asp
Especially take a look at the Try-it-yourself demos.