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?
you’ll have to hack the 3rd party script to call your function when it adds/removes (or exchange the 3rd party script to a suitable jquery plugin).