JSFiddle - React, Tailwind, and code Playground
HTML
<button class='my-button'>Press to focus -></button>
<input type='text' class='my-textbox' />
JavaScript
$('.my-button').click(function() {
$(".my-textbox").focus()
});
<button class='my-button'>Press to focus -></button>
<input type='text' class='my-textbox' />
$('.my-button').click(function() {
$(".my-textbox").focus()
});