I'm not sure how I missed that.  I use
http://jquery.bassistance.de/api-browser and
http://docs.jquery.com/DOM/Traversing/Selectors on a daily basis.

Again, thanks.  I'm a DOM programmer so I'm having to force myself to
rethink everything.  Sometimes it just takes a hit from the experts to break
through the mental logjams :)

I love jQuery!



Do you mean the $( 'selector', context)? By default $() searches the
document, the document is the context. If you add a second argument
that is a DOM element or a jQuery object then they become the context,
and it searches "inside" them.

For more info I suggest:

    http://docs.jquery.com/Core

Or Visual jQuery:

    http://www.visualjquery.com/

Karl Rudd

On 2/13/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> Hmm - I haven't seen a selector used like that before - where do I find
> more
> information on how that works?
>
> Thanks again - I figured there was an elegant solution.
>
>
> Karl Rudd wrote:
> >
> > $('#theSelect').bind( 'change', function() {
> >   var list = [];
> >   $('option:selected', this).each( function() { list.push( this.value )
> }
> > );
> >   // do something with 'list' here
> > });
> >
> > Karl Rudd
> >

-- 
View this message in context: 
http://www.nabble.com/selector-gurus%3A-how-can-I-create-list-of-all-selected-elements-values.-tf3218532.html#a8948411
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to