Solution can use jQuery or be plain JavaScript.
I want to remove a table row after user has clicked the corresponding button contained in the table row cell so for e
You can use jQuery click instead of using onclick attribute, Try the following:
click
onclick
$('table').on('click', 'input[type="button"]', function(e){ $(this).closest('tr').remove() })
Demo