I want to do something when a option selected contains a certain word, however the below does not work:
<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>
$('#coloroption').change(function() {
var message_index = $(this).val();
if (message_index.indexOf('Kentucky') >= 0){
alert('MINIMUM 12')}
});