hector, hi. thanks for that, yes, you are right with the find()
function.
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#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
3 matches
Mail list logo