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!

Getting Data from combo boxes.

Status
Not open for further replies.

xenomage

Programmer
Jun 27, 2001
98
SG
Hi all,

i'm just full of qns. Hope you guys can help me out once more.

What is the syntax to get the value of the select item in a combo box??

Thanks
 
Well, in ASP, you just ask for the request.form("selectName") on the receiving page --

In client side javascript on the same page as the select, you would ask for:

document.formName.selectName.value

to get the textual value or:

document.formName.selectName.selectedIndex

to get the ordinal reference of what is selected

hope that helps :)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top