I have a third-party js function that dynamically adds/removes options to a SELECT element and I would like to perform an action whenever options are changed.
I tried attaching an 'onchange' event to the select but the event is triggered only when changing 'selection', not 'options'.
Any hint on how I can do that?