javascript remove the current tr with click

JavaScript
//JQuery:
$(this).closest('tr').remove();<!--Buuton inside any cell in the TR row -->
<input type="button" onClick="$(this).closest('tr').remove();">
Source

Also in JavaScript: