JSFiddle - React, Tailwind, and code Playground
HTML
<table id="foo">
<tr class="aka 0">
</tr>
<input id="aka_1_" name="aka[1]" type="hidden" value="2" /> <tr>
<td>
AKA 1 </td>
<td>
<input class="text-box single-line" id="aka_1_" name="aka[1]" type="text" value="2" />
</td>
</tr>
<tr class="aka 1" id="sdf">
<td> foo row2
</td>
<td><input type="button" class="removeAKA" id="aka 1" value="Delete" />
</td>
</tr>
</table>
JavaScript
$(".removeAKA").click(function () {
// alert($(this).val());
var id = this.id.toString().replace(" ",".");
alert(id);
$("table ."+id).remove();
});