[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 tag and class "menu_head"

[jQuery] Re: get top most parent

2008-11-24 Thread chitgoks
i managed to get the top most parent regardless which menu item is clicked using this code $('#ID_HERE').parents('div.menu_body').prev($('#ID_HERE').parents ('div.menu_body').size()-1)

[jQuery] get all children and subchildren

2008-11-24 Thread chitgoks
how would you write the code to get all children and sub-children that are of class menu_head and menu_body? example this would be my html Header-2 Sub-Menu

[jQuery] Re: How to find the first parent?

2008-11-24 Thread chitgoks
elementobj.parents()[0] or elementobj.parent() On Mon, Nov 24, 2008 at 6:51 PM, Debby <[EMAIL PROTECTED]> wrote: > > How to find very first parent of perticular element? -- Website/Java Games: http://www.chitgoks.com Java Casino Games: http://chitgoks.tripod.com Photo Gallery: http://gallery

[jQuery] get top most parent

2008-11-24 Thread chitgoks
hi, i am stumped so i am posting it here. no luck searching google for many hours this is my html code Header-1 Link-1 Link-2 Link-3 Header-2