remove table line button html using javascript

JavaScript
// JQuery solution!
$('table').on('click', 'input[type="button"]', function(e){
   $(this).closest('tr').remove()
})

Source

Also in JavaScript: