[jQuery] Re: get all children and subchildren

2008-11-25 Thread chitgoks
hector, hi. thanks for that, yes, you are right with the find() function.

[jQuery] Re: get all children and subchildren

2008-11-24 Thread chitgoks
by the way, the sample html above is only 1 sub level. i am going to place in a lot of sub-sub menus so my issue is how to traverse to all children way down the tree that have the p tag and class menu_head

[jQuery] Re: get all children and subchildren

2008-11-24 Thread Hector Virgen
jQuery#children() only returns the immediate children of the element. If you want to dig deeper, you should use jQuery#find() $('#header2').find('.menu_head'); // returns all divs with the class menu_head within the div with id header2. -Hector On Mon, Nov 24, 2008 at 5:57 PM, chitgoks [EMAIL