JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

<script src="http://code.jquery.com/jquery-git.js"></script>

<table>
  <tr>
    <td>
      <a href="#">Cancel</a>
    </td>
  </tr>
</table>

JavaScript

$(document).on('click', '#whatever', function(){});
$('table').on('click', 'a', function() {
  $(this).parents('tr').remove();
});