JSFiddle - React, Tailwind, and code Playground

by Alfie

HTML

<input type="text" id="one" />_______
<input type="text" id="two" />
<br>
<br/>
<div id="divRemove" tabindex="0" style="width:100px;height:100px;background:red; display:none;">remove on focus out</div>

JavaScript

$('#one,#two,#divRemove').focus(function () {
    $('#divRemove').show();
});
$('#one,#two,#divRemove').focusout(function () {
    $('#divRemove').hide();
});
$('#divRemove').click(function () {
    alert($(this).text());
});