[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] 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 div id=firstpane class=menu_list !--Code for menu starts here-- p id=header1 class=menu_headHeader-1/p div class=menu_body a

[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:

[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 p id=header2 class=menu_headHeader-2/p div id=header2_menubody class=menu_body div id=pane class=menu_list

[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] 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