Maybe something like this could work as well DataTable: dt1. Queries related to remove last tr from table jquery remove last row from table jquery; how to hide the last th in tr with jquery; how to remove the last selected row time of Row: (leave this blank) RowIndex: dt1.rows.count - 1. $(row).remove(); You can use: $($(this).closest("tr")) You're right: $('#myTableRow').remove(); for finding the parent table row of an element. It is more elegant than parent().parent() which is what I s $("table tr:not(:last)").remove() < title > remove last row from a table < script language =" JavaScript" type =" text/javascript " >