JSFiddle - React, Tailwind, and code Playground

by jfriend00

HTML

Disable Blur <input id="disable" type="checkbox"><br>
Text 1: <input type="text"><br>
Text 2: <input type="text"><br>
<div id="log"></div>

JavaScript

var processBlur = true;

$("input[type='text']").blur(function() {
    if (processBlur) {
        $("#log").append("Blur Processed<br>");
    }
});
$("#disable").click(function() {
    processBlur = !$(this).prop("checked");
});