JSFiddle - React, Tailwind, and code Playground
by Town
HTML
<input id="search" type="text" value="mycurrtext" size="30"
onfocus="this.value = this.value;" name="search"/>
JavaScript
$('#search').focus()
by Town
<input id="search" type="text" value="mycurrtext" size="30"
onfocus="this.value = this.value;" name="search"/>
$('#search').focus()