JSFiddle - React, Tailwind, and code Playground
by alpacalips
HTML
<div id="divContainer">
<input type="text" class="lalala" />
<p id="img1"></p>
</div>
JavaScript
$('.lalala').bind('blur', function (e) {
CheckFirstInput($(this));
});
function CheckFirstInput($el) {
var $last = $el.siblings().filter(':last');
var html = ($el.val() == '') ? 'prazno e' : 'ne e prazno';
$last.html(html);
}