add and remove table row using jquery code example
Example: remove tr in table jquery
$("#MyTable").on("click", "#DeleteButton", function() {
$(this).closest("tr").remove();
});
$("#MyTable").on("click", "#DeleteButton", function() {
$(this).closest("tr").remove();
});