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
] 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
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
.
-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
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
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
] 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