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!

Getting value of a .NET listbox to add to javascript querystring

Status
Not open for further replies.

tirbine

Programmer
Mar 13, 2003
2
US
Need to know what the syntax is for getting a selected item within a listbox so that it can be passed via the querystring to a new pop up window.
Thanks.
 
Give an id to your select tag (for exemple "mySelect"). Then, in script, Type that :
Code:
var o_sel = document.getElementById("mySelect");
alert ("Selected value=" + o_sel.value);
Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top