How To Select First Ancestor That Matches A Selector? September 19, 2023 by Tarik That would be closest: $(this).closest('tr').hide();