JSFiddle - React, Tailwind, and code Playground
by j_tufte
HTML
<div id="formInput" contenteditable="">Type something here</div>
<input id="orInput"></input>
<button id="otherBox">button</button>
CSS
#formInput {
width: 400px;
height: 200px;
border: 1px solid black;
}
#orInput {
}
#otherBox {
width: 400px;
height: 50px;
background-color: black;
color: white
}
JavaScript
$('#otherBox').on('click', function(){
$('#formInput').blur();
// $('#orInput').blur();
});