JSFiddle - React, Tailwind, and code Playground

HTML

<table id="a1" cellpadding="3" cellspacing="3" border="1">
    <tr>
        <td><input type="checkbox"></td>
        <td><input type="text"></td>
    </tr>
</table>
<input type="button" id="adRow" value="Add Row" />
<input type="button" id="delRow" value="Delete Row" />

JavaScript

$("#adRow").click(function(){
    var newTxt = $('<tr><td><input type="checkbox"></td><td><input type="text"></td></tr>');
    
    $("#a1").append(newTxt);
});


$("#delRow").click(function(){
    $(":checkbox[checked='true']").each(function(){
       
          var curRow = $(this).parents('tr');
          curRow.remove();
       
    });
});