JSFiddle - React, Tailwind, and code Playground
by dmethvin
HTML
<div id="resp1"></div>
<div id="resp2"></div>
JavaScript
// #5055
//$('#resp1').html('<button id="clickme">click me</button>');
//setTimeout( function() {$('#clickme').focus()},0);
//$('#clickme').focus();
$('#resp2').html('<input type="text" width=20 id="typeme" name="typeme"/>');
//setTimeout( function() {$('#typeme').focus()},0);
$('#typeme').focus();