I create a dropdown, and add a change event to it.

Then i destroy the element.

After a while i recreate it (same id, same name), and add the same
change event to it.
However, when i actually fire the change event this time around, it is
fired twice!

So, every time i delete, re-create it, and add the new event, all the
previous events apply, plus the new one.

So, question 1:
- Why? This is a new element, even though it has the same name, the
event should have died with the old element?

Question 2:
- How do i prevent it? Is there a way to check if an event has been
applied to an element?

Reply via email to