JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<div class="large">click here then press tab</div>
<div class="focus">
    <form>
        <input type="checkbox" value="Will focus on and off" tabindex="1" />
    </form>     
</div>

CSS

.large {
    font-size: 100px;
}

JavaScript

$("form").on("focusin focusout", function (e) {
    console.log(e.type);
});