JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td class='deletable'>hiy</td>
</tr>
</table>
<ul>
<li>
<span class=deletable>hix</span>
</li>
</ul>
JavaScript
$(".deletable").live('click',function(){
$(this).parent().eq(0).remove();
});