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 ----------- אריה גלזר 052-5348-561 5561
On Sat, Nov 28, 2009 at 10:52, Sanford Whiteman <[email protected] > wrote: > > i would like to do something like > > *$('parent-el').getElements('>.sub-el') > > getElements('.sub-el') > > You aren't making it clear whether you want a generic > getImmediateChildNodes or one that uses your particular CSS classes. > > -- Sandy > > >
