delete tr in jquery code example
Example 1: jquery remove all tr from table
$("#tableId > tbody"). empty();
Example 2: remove tr in table jquery
$("#MyTable").on("click", "#DeleteButton", function() {
$(this).closest("tr").remove();
});
$("#tableId > tbody"). empty();
$("#MyTable").on("click", "#DeleteButton", function() {
$(this).closest("tr").remove();
});