JSFiddle - React, Tailwind, and code Playground

by nogoodatcoding

HTML

<input type="text" name="t1" />
<input type="text" name="t2" />
<input type="text" name="t3" />
<input type="text" name="t4" />

JavaScript

$('input').focus(function(){
    alert("Focus is on input with name " + $(this).attr('name'));
});