[Javascript] <select>

Iztok Polanic iztok.polanic at amis.net
Tue Aug 23 11:45:02 CDT 2005


Hi!

I'm trying to retrieve text of a <select> tag. If I use .value method, I 
get the value that is written inside <option> tag, but I need the text. 
For better illustration I'm providing below an example:

<select>
<option value="1">somethhing</option>
</select>

How to retrieve 'somethhing' with JS?
Tnx.

-- 
Bye,

Iztok
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3190 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050823/995db982/attachment.bin>


More information about the Javascript mailing list