how to pass a table row delete method inside <a>tag or button 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);
}