button to delete row js code example
Example: remove table line button html using javascript
// JQuery solution!
$('table').on('click', 'input[type="button"]', function(e){
$(this).closest('tr').remove()
})
// JQuery solution!
$('table').on('click', 'input[type="button"]', function(e){
$(this).closest('tr').remove()
})