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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you use drop down Items as variables? 1

Status
Not open for further replies.

kanin247

Programmer
Apr 23, 2001
113
US
how do you refer to drop down items as variables? or how do you use the drop down items in equations?

for example...
Select KV (drop down menu)
- 230
- 115
- 46
- 33

equation
XF=66.8/KV*KV

thanks for the help.
~kanin
 
document.forms["form_name"].elements["drop_down_name"]

from that you can get it's value (".value") and lots of other stuff.

check out msdn.microsoft.com/workshop/
click on HTML and CSS link and then DHTML Reference... very good site. I hope this helped! ;-)
- Casey Winans
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top