Why is jQuery .prop not working, seemingly?

blablabla

New Member
Sql Fiddle example\[code\]$('#myBox').click(function(e){ e.preventDefault(); e.stopPropagation(); $('#myBox').prop("checked", !$('#myBox').prop("checked") );});\[/code\]I'm attaching this to a checkbox so that the check toggling is controlled by my javascript instead of by the default behavior, and it just won't work. I can't figure out why!My reason for doing this: IE has a double-click filter, so to speak, so that double-clicking checkboxes only registers as a single click. This happens to stop people from toggling checkboxes really fast, which is a feature I need for my application, strangely enough. So I'm just canceling its default functionality and catching clicks by hand with JavaScript/jQuery and toggling it that way, thus eliminating the "speed limit." Except I don't know how to stop the clicks from toggling it in the first place, hence this question.
 
Back
Top