JSFiddle - React, Tailwind, and code Playground

by Hari Menon

HTML

<table>
    <tr title="test" id="ex1">
        <td><div class="move">Hello 1</div></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr id="ex2">   
        <td><div class="move">Hello 2</div></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>       
</table>

<button>Move</button>

JavaScript

$("button").click(function() {
    $(".move", "#ex2").remove();
});