how to remove row from table in javascript code example
Example 1: remove table line button html using javascript
// JQuery solution!
$('table').on('click', 'input[type="button"]', function(e){
$(this).closest('tr').remove()
})
Example 2: removing specific row with button html
function deleteRow(r) {
var i = r.parentNode.parentNode.rowIndex;
document.getElementById("myTable").deleteRow(i);
}