JSFiddle - React, Tailwind, and code Playground
by sushanth009
HTML
<div id="foo1">
</div>
<div id="foo2">
<div>Foo Here</div>
</div>
CSS
#foo1
{
width: 100px;
height: 40px;
background-color: orange;
}
#foo2
{
width: 100px;
height: 40px;
background-color: gold;
}
JavaScript
$('#foo1').html( $('#foo2 > div').clone())