79543097

Date: 2025-03-29 10:26:34
Score: 0.5
Natty:
Report link

HTML:

<table id="mytable">
  <thead>
    <tr>
      <th>Header</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>...</td>
    </tr>
  </tbody>
</table>

JavaScript:

document.getElementById("mytable").tBodies[0].innerHTML = '';

Or loop over tBodies, if you have more than one.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: positron