JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div1">
VOLVO B9R
</div>
CSS
#s
{
width:200px;
float:right;
}
#div1
{
min-width:100px;
width:auto;
float:left;
border:2px solid black;
min-height:100px;
height:auto;
background-color:red;
}
JavaScript
$(document).ready(function(){
$("div").click(function(){
$(this).after($('<div id="s" style="background-color:blue;">NLC TRANSPORT</div>'));
$("#s").bind('click',function(){
alert("sljsdf");
});
});});