JSFiddle - React, Tailwind, and code Playground

HTML

<tr class="aka 1" id="sdf">
                                <td>
  AKA 1                                 </td>
                                <td>
                                <input class="text-box single-line" id="aka_1_" name="aka[1]" type="text" value="2" />
                                </td>
                        
                                <td><input type="button" class="removeAKA" id="aka 1" value="Delete" />
                                </td>
                            </tr>

JavaScript

$(".removeAKA").click(function () {

            // alert($(this).val());
            var id = this.id;
            alert(id);
          $("." +id).remove();
           
        
        });