JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="show" value="show" />
<select id="myslect">
    <option>nothing</option>
    <option>something</option>
    <option>anything</option>
</select>

JavaScript

$("#show").click(function () {
    var element = $("#myslect"),
        worked = false;
        
        element.trigger("change")
/*     if(document.createEvent) { // chrome and safari
        var e = document.createEvent("MouseEvents");
        e.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
        worked = element.dispatchEvent(e);
        console.log(worked)
    } */
/*     if(!worked) { // unknown browser / error
        alert("It didn't worked in your browser.");
    } */
});