09 March 2011

CheckBox "onchange" event fired before "onclick" event in Google Chrome

Hi,

      When working on another Javascript Library I have found another problem or maybe I am wrong and this is expected behavior. The problem is:
           - In Internet Explorer - onchange event is fired after the onclick event;
           - In Google Chrome - onclick event is fired after the onchange event.

      I am not sure about other browsers.

      All this refers to checkbox only, because I didn't try others, but I guess radiobuttons have the same issue.

Need more? Leave comments and subscribe to my blog.

.