That is true, that is the correct behaviour, there was specific talk about what you are expecting a bit ago and I can't remember the end discussion, it may have even been on the dev list. I will see if I can come across it.
Ultimately, you can do: var $selected = Array(); $('.selected').each(function(){ $selected.push($(this).attr('rel')); }); On 9/27/07, Andy Matthews <[EMAIL PROTECTED]> wrote: > > If I wanted to get the rel values for all elements which match a jQuery > call, how would I do that? > > I thought that this: > > var $selected = $('.selected').attr('rel'); > alert($selected); > > would give me this: 9/1/2007,9/30/2007 > > But it only returns the first value. Is this correct behaviour? I > basically need to get the rel attribute of all elements which have a > specific class for use further down the codebase. > > * ____________________________________ > > Andy Matthews > *Senior ColdFusion Developer > > Office: 877.707.5467 x747 > Direct: 615.627.9747 > Fax: 615.467.6249 > [EMAIL PROTECTED] > www.dealerskins.com > > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com http://www.benjaminsterling.com
<<att34897.bmp>>