IE and checkbox onchange event

Damn, fuckin’ Interner Explorer does not works correctly with checkbox “onchange” event.
IE does not send change event when the checkbox has been clicked, only after the element has lost focus (what a fuck?).

This does not work in Internet Explorer:

checkbox.addEvent('change', function() {
    alert('I have succeeded?');
});

Therefore, we are forced to use an “onclick” event instead of “onchange” event.

This should work in Internet Explorer:

checkbox.addEvent('click', function() {
    alert('I have succeeded!');
});

I hope that IE developers will change this checkbox behavior in Internet Explorer 8.

Also interesting

  • No Related Post

One Response to “IE and checkbox onchange event”

  1. HighjackMaster says:

    wow!

Leave a Reply