[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

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

2007-03-14 Thread Andy Matthews
] 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've passed

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 of all

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

2007-03-14 Thread Karl Swedberg
. -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 closeSubModules(subModules

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

2007-03-14 Thread Dan Eastwell
the first instance of that object. -Original Message- From: [EMAIL PROTECTED] [mailto:[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

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

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

2007-03-14 Thread Sam Collett
] 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 closeSubModules(subModules){ for(var i=0; i subModules.length; i++){ theElement = subModules[i