I know Karl's answer is correct, but from the docs ( http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN ) I would've thought the comma meant "select all div elements, and this".
Is there any documentation that would help me understand this? On Sep 29, 10:03 pm, MorningZ <morni...@gmail.com> wrote: > oops... that'll teach me to try to make sense first thing in the > morning :-) > > Coffee first THEN post > > On Sep 29, 9:11 pm, Karl Swedberg <k...@englishrules.com> wrote: > > > On Sep 29, 2009, at 7:33 AM, MorningZ wrote: > > > > Whatever "this" is in that case, it's the context to look for any > > > <div> (jQuery will only select <div>'s that are ancestors of "this" in > > > the DOM tree) > > > Correction: for $('div',this), jQuery will only select <divs>s that > > are descendants of "this" in the DOM tree. > > > --Karl > > > ____________ > > Karl Swedbergwww.englishrules.comwww.learningjquery.com