JSFiddle - React, Tailwind, and code Playground

by Eric Miller

HTML

<input id="foo" name="foo" type="text" onblur="javascript:passActive(document.activeElement)" value="12345">
<input id="foo" name="foo" type="text" onblur="javascript:passActive(this)" value="67890">
<script>
    function passActive(obj) {
        console.log(obj.tagName);
        return;
    }
</script>