I'm an LLTH too! @select looks at the dom, and doesn't get set when the
option is selected by the user!
I verified this by selected another option and firebugging the dom.. it's
still the pre-selected option that has the selected attribute.
<select>
<option selected="selected">1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>6</option>
<option>5</option>
<option>8</option>
</select>
the dom doesn't change.
On 12/18/06, Mike Alsup <[EMAIL PROTECTED]> wrote:
> I'm unfamiliar with the previous post where Mike suggested using the
> @selected selector but have you tried using the :selected selector?
>
> $('#unit option:selected').text();
You got it Brandon. It works with :selected but not with @selected,
which is weird because that used to work.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/