If the event is called directly through onchange , you can call the handler by calling this handler, for example:
mySelect.options[index].selected = true; mySelect.onchange();
... if it does not adjust in this way, then different approaches are appropriate depending on how you are attached, and more information on how your handlers are bound (t)> onchange .
source share