Is there a jQuery selector/method to find a specific parent element n levels up? March 25, 2023 by Tarik The parents function does what you want: $(this).parents("tr:first");