JSFiddle - React, Tailwind, and code Playground

HTML

<select id="coloroption">
 <option value="172">Granite Gray</option>
 <option value="174">Hot Red</option>
 <option value="173">Navy</option>
 <option value="171">Kentucky Green</option>
</select>

JavaScript

$(document).ready(function(){

$('#coloroption').change(function(e) {
    var sel = $('#coloroption')[0];
   message_index = sel.options[sel.selectedIndex].text;

  if (message_index.toLowerCase().indexOf('kentucky') >= 0){
                alert('MINIMUM 12')}
});

});