JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<option style="color: #ff0000;">Hello</option>
<option style="color: #00ff00;">world</option>
</select>
JavaScript
var el = $('select:first').children(':first')[0];
if (window.getComputedStyle) // Doesn't work in IE
alert('Computed style: ' + getComputedStyle(el, null)['color'] +
'\nDirect style: ' + el.style['color']);