Thx. As it turned out I had a syntax problem:

//works
$('#mySelect :selected').text();

//does not, need space before colon
$('#mySelect:selected').text();

On Apr 9, 11:33 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Check the archives. I asked the same question about 5 months ago. I can't
> recall what project it was for, but I know it worked.
>
> andy
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Buzzterrier
> Sent: Monday, April 09, 2007 1:20 PM
> To: jQuery (English)
> Subject: [jQuery] Getting option text from select
>
> Is there a way to get the selected option's text from a select-one control?
> The form plugin returns the value, but I cannot seem to find a way to get
> the text.

Reply via email to