JSFiddle - React, Tailwind, and code Playground
by robert
HTML
<input type="text" class="hoverAble" value="hover here"/><br />
<input type="text" class="hoverAble" value="hover here"/><br />
<input type="text" class="hoverAble" value="hover here"/>
JavaScript
$(".hoverAble").mouseenter(function() {
this.select();
}).mouseleave(function() {
this.blur()
});