JSFiddle - React, Tailwind, and code Playground

by Ashish Kasama

HTML

<select multiple id="selected_available_segments"> 
    <option>test</option>
</select>

JavaScript

if ( $("#selected_available_segments option").length ) {
    console.log("Im there!");
};