p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

javascript thread: RE: Retrieving selectedIndex value from SELECT t-ag i-n Netscape


Message #1 by "Jacek Kaczocha" <jacek@w...> on Mon, 21 Aug 2000 21:58:55
<select name="name_list">
<option value="Jacek">Jack
<option value="Harry">Harry
<option value="Thomas">Thomas
</select>

this is the quickest method:

alert("Name=" + 
document.form_names.name_list.options[selectedIndex].value);

I hope it works! ".text" is used in vbscript and not in javascript!

  Return to Index