JSFiddle - React, Tailwind, and code Playground

by Mark Coleman

HTML

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

JavaScript

$("#inputBoxId").blur(function() {
    if ($(this).val() < 10) {
        setTimeout(function() {
            $("#inputBoxId").focus();
        }, 100);
    }
});