how to delete a table in dom onclick javascript 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()
})