On Sat, Nov 28, 2009 at 2:36 PM, אריה גלזר <[email protected]> wrote:
> 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.
> not familiar with getImmediateChildNodes but if it's cross-browser and can
> be passed selectors than thats what i'm looking for

http://docs.mootools.net/docs/core/Element/Element#Element:getChildren

var children = someEl.getChildren('.sub-el');

Regards
Rajeev J Sebastian

Reply via email to