Ticket #167 (closed bug: fixed)
attr('checked', true) doesn't work
| Reported by: | mike@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | attr, checked | Cc: | " |
| Blocking: | Blocked by: |
Description (last modified by dmethvin) (diff)
$("#method-download").attr('checked', true); doesn't seem to work but $("#method-download").get(0).checked = true; does.
Adding checked: "checked" to the 'fix' hash in the 'jQuery.attr' method gets it working though...
Attachments
Change History
Changed 7 years ago by chocolateboy
-
attachment
firefox.html
added
comment:1 Changed 7 years ago by chocolateboy
- Keywords checked added; rev249 removed
- Priority changed from minor to major
- Version 1.0b1 deleted
- Milestone 1.0 deleted
Also: $('#whatever').attr('checked', false) doesn't work at all for checkboxes or radio buttons on Firefox. See attached test case. Works fine on IE.
Dunno which version to mark this under as the file doesn't say: it's dated as:
2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006)
comment:2 Changed 7 years ago by chocolateboy
According to Trac, there's no bug #167, so I can't attach the test case.
Let me know if you want me to forward it.
chocolateboy
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Firefox test case for bug #167