JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div1">
VOLVO B9R
</div>

CSS

.mytable td, .mytable th
{
          border:1px solid green;
}
.mytable th
{
          background-color:green;
          color:white;
}

JavaScript

$(document).ready(function(){

 $(document).on('click',"div",function(){


$(this).after($('<div id="s" style="background-color:blue;">NLC TRANSPORT</div>'));
});

$(document).on("click", "#s", function(){
   alert("sljsdf");
});
});