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

Drop Downs

Status
Not open for further replies.

MadJock

Programmer
May 25, 2001
318
GB
Quick, hopefully simple question:

I can refer to the contents opf a text box like this;

Code:
myForm.myTextBox.value

Is there a similar way to refer to the value list of a drop down menu?

Is there any source on the net that shows what methods are associated to what controls??

Thanks in advance
 
Sometimes document.myForm.mydropdown.value will work depending on the script

position = document.myForm.mydropdown.selectedIndex
document.myForm.mydropdown.options[position].value

or

document.myForm.mydropdown.options[document.myForm.mydropdown.selectedIndex].value

Hope it'll help... Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top