JSFiddle - React, Tailwind, and code Playground
by rajaadil
HTML
<input type="text" />
<div id="error" style="display:none">add some text</div>
JavaScript
function checking() {
var textBox = $('input[type=text]').val();
if (textBox == "") {
$("#error").show('slow');
}
}
checking();