Checkboxes are being checked before click handler is even called
问题 I have the following snippets: http://jsfiddle.net/L7rne/5/ and http://jsfiddle.net/L7rne/6/ It turns out that if you pause execution of the script in the click event handler, then the checkbox is checked, even though there is event.preventDefault() . I tried this in Firefox 7 and Chrome 15 and both behave in the same way. I'm almost sure that it's a correct behaviour but somehow I cannot find any reference why it's like that. Could someone point me in the right direction? EDIT: When you