JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<optgroup id='111' label="111" style="display:none"></optgroup>
<option value="111">111</option>
<optgroup id='222' label="222" style="display:none"></optgroup>
<option value="222">222</option>
</select>
JavaScript
$('select').on('change',function(){
$('optgroup').hide();
$('select option').show();
$('select option:selected').hide();
$('#'+$('select option:selected').val() ).show();
}) ;