JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="something" class="tab" />
JavaScript
$('.tab').mouseleave( function() {
alert(this.name);
});
<input type="text" name="something" class="tab" />
$('.tab').mouseleave( function() {
alert(this.name);
});