JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<input type=text name=abc />
<input type=text name=def />

JavaScript

$('input').focus(function(){
  var jf = $(this).is(':focus'),
      ef = this === this.ownerDocument.activeElement;
  console.log( "focus "+jf+" "+ef );
});