views:

63

answers:

1

Suppose the jQuery object is $obj,how to select the desired ancestor?

+1  A: 

Use parents() with the :first selector:

obj.parents("tbody:first");
cletus
I didn't know where is a .parents() call!
Shore