JSFiddle - React, Tailwind, and code Playground

by Matthew Watzman

HTML

<div id="table-wrapper">
  <table border="1px">
    <tr>
      <td>One</td>
    </tr>
    <td>Two</td>
    <tr>
      <td>Three</td>
    </tr>
    <tr>
    </tr>
  </table>
</div>
<button type="button" id="button">Button</button>

JavaScript

$(document).ready(function() {
  $('#button').click(function() {
    $('#table-wrapper').html('No records found.');
  });
});