Link to home
Start Free TrialLog in
Avatar of debbieau1
debbieau1Flag for United States of America

asked on

select text of menu

Instead of selecting the value of an option, I need to select the text between the option tags

for example in a menu like this

<select id="testmenu">
    <option value=1>First label</option>
    <option value=2>Second label</option>
</select>

For example on select the second option, I  want to get     Second label.
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of debbieau1

ASKER

Thanks I tried .text()  but had mistyped.  Thanks again.