[jQuery] Re: expr in $(, expr) not as expected

2008-07-02 Thread Karl Swedberg
On Jul 2, 2008, at 7:57 AM, [rob desbois] wrote: Hi, have a feeling this may be a silly question but here goes.. Test output from Firebug's console is below to explain my issue. I select an array of divs by their parent: divs = $(#sidebar div).get() [div#sidebar-search-tabcont,

[jQuery] Re: expr in $(, expr) not as expected

2008-07-02 Thread [rob desbois]
On Jul 2, 2:11 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Jul 2, 2008, at 7:57 AM, [rob desbois] wrote: Hi, have a feeling this may be a silly question but here goes.. Test output from Firebug's console is below to explain my issue. I select an array of divs by their parent:

[jQuery] Re: expr in $(, expr) not as expected

2008-07-02 Thread chris thatcher
Hi Rob, It's an easy issue to confuse at first so don't worry. the expr parameter is treated as a top level context and the query you're using, 'div', is actually saying 'find any descendant divs UNDER the top level context'. Now to help you figure out what query might possible to discern one of