Suppose the jQuery object is $obj,how to select the desired ancestor?
Use parents() with the :first selector:
parents()
:first
obj.parents("tbody:first");