Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting values from drop down menus

Status
Not open for further replies.

LordyLordy

Technical User
Oct 15, 2001
11
GB
A bit of a Javascript/HTML question here:

I have a HTML form, which has a drop down menu in it and a couple of text boxes next to it. e.g drop down menu is the product code which the user selects, then I want the description and the price to appear in the two text boxes.
I am then sending the information to a Perl script. My problem is I can't get the description or price to appear, how do I include an IF statement (I assume) in the middle of the HTML form?

Cheers.
 
You can't really. What you can do is onChange from the select box, call a function which looks for the selected item then puts whatever text you want in the text boxes. Kevin
slanek@ssd.fsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top