On Sat, Nov 28, 2009 at 9:35 PM, Sanford Whiteman <[email protected]> wrote: >> var children = someEl.getChildren('.sub-el'); > > That's what I thought the OP meant, too, but I think the same class > can occur at deeper nesting levels as well.
Sanford: No, he wants only immediate children: im looking for a way to find only the immediate children of an element that fllow a certain selector. so if i have an element with 3 children: a.sub-el d.sub-el b c.sub-el i could just fetch a and c, and not d. 'sub-el' is just to give an example to a rule. Regards Rajeev J Sebastian
