javascript clear a table code example
Example 1: javascript clear table body
$("#tbodyid").empty();
Example 2: javascript clear table body
<table>
<tbody id="tbodyid">
<tr>
<td>something</td>
</tr>
</tbody>
</table>