JSFiddle - React, Tailwind, and code Playground

by nayish

HTML

<input type=text id="WallSearch" value="0"/>

JavaScript

$(document).ready(function() {
    walkmydog();
});
    
function walkmydog() {
    //when the user starts entering                                                                                                                                                
    if(document.getElementById('WallSearch').value.length == 0) {
        alert("nothing");
    }
}