JSFiddle - React, Tailwind, and code Playground
HTML
<input id="myTextbox" type="text" name="myTextbox" value="FooBar" />
JavaScript
$('#myTextbox').focus(function() {
$(this).val("");
});
<input id="myTextbox" type="text" name="myTextbox" value="FooBar" />
$('#myTextbox').focus(function() {
$(this).val("");
});