var getParent = function(){
myparentID = $(this).parent().parent().parent().attr(id);
parentID = My table ID is: + myparentID;
alert (parentID);
};
$(td).bind(click, getParent);
Hope that helps,
Manowar721
On Jan 31, 3:01 pm, Chrille christoffer...@gmail.com wrote:
Hi everyone,
I
If you want the id of the parent table, you can get it this way:
$(this).parents('table')[0].id
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 31, 2009, at 4:57 PM, Christoffer wrote:
Hi everyone,
I have a lot of tables, like this:
table
2 matches
Mail list logo