JSFiddle - React, Tailwind, and code Playground
by rajaadil
HTML
Keey any of text box empty and get focus out of it <br /> <br />
<input type="text" /> <br /><br />
<input type="text" /> <br />
<div id="error" style="display:none">add some text</div>
JavaScript
$('input:text').blur(function() {
var textBox = $('input:text').val();
if (textBox == "") {
$("#error").show('slow');
}
});