JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="Enter Keyword or Co. Name" name="q" id="q" class="foobar" />

JavaScript

$('#q').click(function(evt) {
    evt.preventDefault();
    this.select();
});