how to clear a table in javascript code example
Example 1: delete all the rows of table javascript
$("#table_of_items tr").remove();
Example 2: javascript clear table body
$("#tbodyid").empty();
Example 3: javascript clear table body
<table>
<tbody id="tbodyid">
<tr>
<td>something</td>
</tr>
</tbody>
</table>