JSFiddle - React, Tailwind, and code Playground

HTML

<div class="ctrlHolder">
<label for="" id="name">Name</label>
<input name="name" id="someid" type="text" class="textInput small" />
<p class="formHint">The name of the item you are submitting</p>
</div>

JavaScript

$('#name').dblclick(function(){
    
   
    $("#someid").val('some text');
});