delete all the rows of table javascript
$("#table_of_items tr").remove();
delete all the rows of table javascript
$("#table_of_items tr").remove();
javascript remove clicked table row from table
<script>
function RemoveRow(o) {
//no clue what to put here?
var p=o.parentNode.parentNode;
p.parentNode.removeChild(p);
}
</script>
<table>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow(this)"></td>
</tr>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow(this)"></td>
</tr>
<tr>
<td><input type="button" value="Delete Row" onclick="RemoveRow(this)"></td>
</tr>
</table>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us