JSFiddle - React, Tailwind, and code Playground

HTML

<select id="selectList"><option value="3">three</option></select>
<select id="other"></select>

JavaScript

$("#selectList").click(function() {
    if ($(this).find("option").size() > 0) {
        alert("it gots elements");
    } else {
        alert("empty");
    }
});

$("#other").click(function() {
    if ($(this).find("option").size() == 0) {
        alert("I'm empty");
    }
});