JSFiddle - React, Tailwind, and code Playground
by Mark Penner
HTML
<input type="textbox"/> <a href="#">[X]</a><br/>
<input type="textbox"/> <a href="#">[X]</a><br/>
<input type="textbox"/> <a href="#">[X]</a><br/>
<div> </div>
CSS
div {
width: 100px;
height: 100px;
background-color: #ccc;
border:1px solid black;
position: absolute;
display:none;
}
JavaScript
$('a').click(function() {
$('div').show().insertAfter($(this).prev('input'));
});
$('body').click(function() {
//$('div').hide();
});