JSFiddle - React, Tailwind, and code Playground

by Lucille Kenney

HTML

<table>
   <tr> 
   <td><button type="button">Delete</button></td></td>
   </tr>
   <tr> 
   <td><button type="button"  >Delete</button></td>
   </tr>
   <tr> 
   <td><button type="button" >Delete</button></td>
   </tr>
</table>

JavaScript

$('button[type="button"]').click(function(e){
   $(this).closest('tr').remove()
})