JSFiddle - React, Tailwind, and code Playground

by jasongennaro

HTML

<input type="text" id="input" />

JavaScript

$("#input").blur(function() {
    if($(this).val() == ''){
        alert('empty'); 
    }
});