JSFiddle - React, Tailwind, and code Playground

by carlmcdade

HTML

<input id="textbox1"/>
<a href="#" id="tester1">test1</a>
<br />
<input id="textbox2"/>
<a href="#" id="tester2">test2</a>

JavaScript

$("#textbox1").blur(function () {
        if($("#textbox1").val() > 24 ) {

            alert('stop');
            
            $("#textbox1").focus(function(){
              $('body').append('focused on textbox');              
            });
            
            return false;

        }

    });