JavaScript Hapus baris tabel yang diklik dari tabel
<script>
function RemoveRow() {
// event.target will be the input element.
var td = event.target.parentNode;
var tr = td.parentNode; // the row to be removed
tr.parentNode.removeChild(tr);
</script>
<table>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow()"></td>
</tr>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow()"></td>
</tr>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow()"></td>
</tr>
</table>
Mysterious Macaw