JSFiddle - React, Tailwind, and code Playground

by jonathon

HTML

<input id="inputname" />

JavaScript

$("#inputname").keyup(function() {

    if (!this.value) {
        alert('The box is empty');
    }

});