JSFiddle - React, Tailwind, and code Playground
by Iceburg
HTML
<div id="selector">
<span>Hello World</span>
</div>
CSS
#selector{
width:100px;
height:100px;
border:1px solid #CCC;
}
JavaScript
$(document).ready(function(){
$('#selector').on("remove", function () {
alert("Element was removed");
});
setTimeout(function(){
$('#selector').trigger('remove');
},3000);
});