[jQuery] Getting Selectbox selected value. Works in IE not FF.

[jQuery] Getting Selectbox selected value. Works in IE not FF.

Rey,
To my knowledge, the latter is an XPath selector that says "get all
options with an attribute of selected" (like <option
selected="selected">), while the former is a dynamic pseudo-selector
that will get the actual "physically" selected option value at run-time.
m.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Rey Bango
Sent: Thursday, September 28, 2006 7:26 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Getting Selectbox selected value. Works in IE not
FF.
Matt,
Whats the difference between this:
$('#mySelect :selected').text();
and this:
$('#mySelect option[@selected]').text();
The latter was code that I grabbed from an earlier posting.
Rey...
Matt Grimm