Hi,
I have an onChange event for my dropdown box. What this event does is creates a clone of the existing dropdown box. Now this new dropdown box will have an onChange event. However, I now want to remove the event from the original dropdown so that it can no longer be called.
I've tried
sender.removeAttribute("onchange");
and
sender.detachEvent("onchange", addNewRow);
but neither one works.
Any help is appreciated.
I have an onChange event for my dropdown box. What this event does is creates a clone of the existing dropdown box. Now this new dropdown box will have an onChange event. However, I now want to remove the event from the original dropdown so that it can no longer be called.
I've tried
sender.removeAttribute("onchange");
and
sender.detachEvent("onchange", addNewRow);
but neither one works.
Any help is appreciated.