[jQuery] Re: Getting option text from select

2007-04-09 Thread Mike Alsup
This might work: $('#mySelect [EMAIL PROTECTED]).text(); On 4/9/07, Buzzterrier [EMAIL PROTECTED] wrote: 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.

[jQuery] Re: Getting option text from select

2007-04-09 Thread Andy Matthews
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

[jQuery] Re: Getting option text from select

2007-04-09 Thread Buzzterrier
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