JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<span id="here">
<input type="text" id="username"></input>
</span>
</form>
<div>Append</div>
CSS
.errors {
position:absolute;
z-index:2; // or higher than parent div
width:100%;
height:100%;
}
JavaScript
$("div").click(function() {
$('<div class="errors">OO</div>').appendTo('#here');
});