Brandon Aaron wrote:
> 
> This has been a hot topic today. Try using the :selected selector
> instead of the attribute selector.
> 
> $('#mySelect option:selected').text();
> 
> 

Ah.  This is getting closer.  Rather bizarrely, it returns the text for both
the original selection AND the new selection,

Eg "--B:Option 1"

But at least I can just chop off the first two characters - near enough is
good enough.

-- 
View this message in context: 
http://www.nabble.com/Getting-the-TEXT-of-an-option-tag%2C-not-the-value.-tf1919282.html#a7939790
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to