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