JSFiddle - React, Tailwind, and code Playground
by Alfie
HTML
<input type="text" id="one" />_______
<input type="text" id="two" />
<br>
<br/>
<div id="divRemove" style="width:100px;height:100px;background:red; display:none;">remove on focus out</div>
JavaScript
$('#one,#two').focus(function () {
$('#divRemove').show();
});
$('#one,#two').focusout(function () {
$('#divRemove').hide();
});
$('#divRemove').click(function () {
alert($(this).text());
});