Click to See Complete Forum and Search --> : Help!!
gorounreal
Jul 17th, 2003, 11:09 PM
I've never done javascript before so this would probably sound easy for most of you. I want it so that when I choose an option from a combo box it displays certain text in a text box. Example - The combo box contains a list of products when I click on a product the cost of that product is displayed in a text box.
Thanks in advance
mendhak
Jul 18th, 2003, 02:28 AM
<select name="productlisting" onChange = "javascript:document.formname.textboxname.value=this.options[this.selectedindex].value';">
<option value="99.99">Shoes</option>
<option value="85.95">Snickers</option>
</select>
Make sure you have a textbox named "textboxname" in a form called "formname"
HTH
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.