JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<p>The input will automatically be focused in 5 seconds.</p>
<p>Type some text in the text field, then blur after the field is focused.</p>

<input />

<p id="notify"></p>

JavaScript

// #8157

$( "input" ).change(function() {
  alert( "changed" );
});

setTimeout(function() {
  $( "input" ).focus();
  $( "#notify" ).text( "The input has been explicitly focused." );
}, 5000 );