Using a class name in jQuery’s .closest() September 18, 2023 by Tarik You need to find the .cost_of_items in the <tr> containing this: $(this).closest('tr').find('.cost_of_items')