JSFiddle - React, Tailwind, and code Playground

by Bharat Soni

HTML

<table>
    <tr>
        <td>
            <input class="class_button_remove id_button_1"   type="button" value="Remove" />
        </td>
        <td>2</td>
    </tr>
    <tr>
        <td>
            <input class="class_button_remove id_button_1"   type="button" value="Remove" />
        </td>
        <td>3</td>
    </tr>
    <tr>
        <td>
            <input class="class_button_remove id_button_1"   type="button" value="Remove" />
        </td>
        <td>4</td>
    </tr>
</table

JavaScript

$('.id_button_1').click(function(){
    $(this).parents('tr').first().remove();
});