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 PROTECTED]> wrote:

>
> 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"

Reply via email to