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 tag and class "menu_head"
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)
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
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
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
6 matches
Mail list logo