JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<select id="x" name="input-select">
<option disabled selected>Select an option</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>
JavaScript
var selectedOption = $("select option:selected");
if(selectedOption.is(":enabled"))
{
var parentObject = selectedOption.parent();
console.log(parentObject);
}