Ticket #10005 (closed bug: duplicate)
Click event function does not fire at consistent times.
| Reported by: | k4emic@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | event | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by rwaldron) (diff)
If using .click() on a checkbox element, the returned value from .is('checked') from inside the elements .click() function will return the opposite of the actual state. If you click the checkbox, the .is('checked') will return the correct state.
[ Example fiddle]
This issue has been around for a while, [ this blog entry] is from 2009.
Callbacks attached to .change() works consistently.
Change History
comment:2 Changed 22 months ago by rwaldron
- Priority changed from undecided to low
- Resolution set to worksforme
- Status changed from new to closed
- Component changed from unfiled to event
- Milestone changed from None to 1.6.3
Callbacks attached to .change() works consistently.
comment:3 Changed 22 months ago by k4emic@…
Was this report closed because another function works as intended, while this one doesn't?
If so, this problem should be mentioned on the documentation page for click (since comments are closed).
comment:4 Changed 22 months ago by rwaldron
- Description modified (diff)
You're missing the point - click is the wrong event to use with checkboxes. It's like reporting that mousedown doesn't work when you hit the spacebar on your keyboard
comment:5 Changed 21 months ago by anonymous
This but was introduced in jquery-1.4.1. On jquery-1.4 click method works fine.
comment:7 Changed 18 months ago by dmethvin
- Status changed from closed to reopened
- Resolution worksforme deleted
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

This bug is reproducible on Firefox 5.0 and Google Chrome 13.0.782.107 m on windows 7 64 bit with jQuery 1.3.2, 1.4.4, 1.5.2 and 1.6.2.