Javascript | Trigger Change event on select

var mySelect = document.querySelector("#mySelect");
mySelect.value = "newvalue";
mySelect.dispatchEvent(new Event('change', {
    'bubbles': true
}));

Leave a Comment

Your email address will not be published. Required fields are marked *