JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="click me to autoselect"/>

JavaScript

$('input[type="text"]').live('click', function () {
    this.select();
});