JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<span id="test">something</span>
<div class="form-group has-error required"><label class="control-label" for="receivedinfo-0-minertype">Insert Type</label>
<input class="form-control" id="receivedinfo-1-minertype" name="receivedinfo-1-minertype" required type="text" value="">
<p class="help-block">This field is required.</p>
<button>click</button>
</div>
JavaScript
$( "input[name*='minertype']" ).val( "has minertypes in it!" );