I have a selectbox with an onchange:
<select id="select" onchange="eventA();">
I'd like to change the "onchange" to something else, for example to eventB();.
I've tried this, based on this post: How to add an onchange event to a select box via javascript?
document.getElementById("select").onchange="eventB()";
However, nothing happens, the onchange does not change.
Any ideas?