JSFiddle - React, Tailwind, and code Playground

HTML

<p tabindex="1">Test 2
</p>
<p tabindex="2">Test 1
</p>

JavaScript

$(document).ready(function () {
        $("p").blur(function () {
            alert($(this).text());
        });

    });