I am trying to remove the event for my input
elements.
I have the following
//add mouse up event on all element under mainDiv
addEvent('mainDiv', 'onmouseup', mouseUpFun);
//search all the input elements and remove the mouse up event
inputs = document.getElementsByTagName('input');
for(var i; i < inputs.length; i++){
var input = inputs[i];
input.removeEventListener('onmouseup');
}
The codes above don't work and still have onmouseup
event attached to it.
Can anyone help me about this issue? Thanks a lot!