JSFiddle - React, Tailwind, and code Playground
by chepe263
HTML
<select>
<option value="a">a</option>
<option value="b">d</option>
<option value="c">c</option>
</select>
<input type="text" id="letext" maxlength="1"/>
<input type="button" id="select" value="Select" />
JavaScript
$('#select').click(function(){
$('select option[value=' + $('#letext').val() +']').prop('selected','true')
});