Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Sam Collett
Matthews wrote: > > > > Use the descendant selector. > > > > Div ul li > > Vs > > Div ul > li > > > > The > says only the first instance of that object. > > > > -----Original Message- > > From: [EMAIL PROTECTED] > > [

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Klaus Hartl
Dan Eastwell schrieb: > For the record: Do the internet explorers support the child selector > (when it's used in CSS and not in jQuery, of course!) Everything below IE 7 doesn't support the child selector. -- Klaus ___ jQuery mailing list discuss@jqu

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Dan Eastwell
11:10 AM, Andy Matthews wrote: > > Use the descendant selector. > > Div ul li > Vs > Div ul > li > > The > says only the first instance of that object. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dan

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Karl Swedberg
rst instance of that object. -Original Message- From: [EMAIL PROTECTED] [mailto:discuss- [EMAIL PROTECTED] On Behalf Of Dan Eastwell Sent: Wednesday, March 14, 2007 10:01 AM To: jQuery Discussion. Subject: [jQuery] Selecting only one level in DOM and no deeper I have a function function

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Klaus Hartl
Andy Matthews schrieb: > Use the descendant selector. > > Div ul li > Vs > Div ul > li > > The > says only the first instance of that object. It's not the descendant selector, it is the child selector. Also, that last sentence may be a bit misleading in a way that it is just the first element

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Andy Matthews
jQuery] Selecting only one level in DOM and no deeper I have a function function closeSubModules(subModules){ for(var i=0; i < subModules.length; i++){ theElement = subModules[i]; $(theElement).hide(); } } one of the subModules[i] I'

[jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Dan Eastwell
I have a function function closeSubModules(subModules){ for(var i=0; i < subModules.length; i++){ theElement = subModules[i]; $(theElement).hide(); } } one of the subModules[i] I've passed this function in an array is "#faq li ul" and hi