[jQuery] Re: Getting the text value of the selected item in select box

2007-10-03 Thread Dave
Thank you Karl. This one had me perplexed also. On Aug 29, 10:00 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Try using .text() on the selected option. e.g.: > > $('select option:selected').text() > > Karl Rudd > > On 8/30/07, Duncan <[EMAIL PROTECTED]> wrote: > > > I am struggling with getti

[jQuery] Re: Getting the text value of the selected item in select box

2007-08-29 Thread Duncan
Thankyou! works like a charm On 8/30/07, Karl Rudd <[EMAIL PROTECTED]> wrote: > > Try using .text() on the selected option. e.g.: > > $('select option:selected').text() > > Karl Rudd > > On 8/30/07, Duncan <[EMAIL PROTECTED]> wrote: > > > > I am struggling with getting the text label of the sel

[jQuery] Re: Getting the text value of the selected item in select box

2007-08-29 Thread Karl Rudd
Try using .text() on the selected option. e.g.: $('select option:selected').text() Karl Rudd On 8/30/07, Duncan <[EMAIL PROTECTED]> wrote: > > I am struggling with getting the text label of the selected item in a > select box. > > $('##Suburb').attr("value") will give me the id (e.g. 4) of th