JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<script src="http://getfirebug.com/firebug-lite-debug.js"></script>
<input type="text" value="select this">

JavaScript

$('input:text').live('focus', function() {
    var $this = $(this);
    setTimeout(function() {
        $this.select();
    }, 0);
    console.log('focus');
});