JSFiddle - React, Tailwind, and code Playground

HTML

<select id='xx'>
    <option>First</option>
    <option>Second</option>
    <option>Third</option>
</select><br>
The first field was focused <span id='count'>0</span> times.

JavaScript

count=0;
$("#xx").blur(function (){
    $("#count").html(++count);
});