Side navigation
#167 closed bug (fixed)
Opened September 01, 2006 04:59PM UTC
Closed October 11, 2009 02:11PM UTC
Last modified March 15, 2012 12:33AM UTC
attr('checked', true) doesn't work
Reported by: | mike@donotremove.co. | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | ajax | Version: | |
Keywords: | attr, checked | Cc: | " |
Blocked by: | Blocking: |
Description
$("#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 (2)
Change History (4)
Changed September 04, 2006 08:43PM UTC by comment:1
keywords: | attr, rev249 → attr, checked |
---|---|
milestone: | 1.0 |
priority: | minor → major |
version: | 1.0b1 |
Changed September 04, 2006 08:48PM UTC by comment:2
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
Changed September 09, 2006 05:12PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Added a testcase for this to SVN; The 'fix' hash already contains checked
Changed October 11, 2009 02:11PM UTC by comment:4
component: | → ajax |
---|---|
description: | $("#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... → $("#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... |
need: | → Review |
priority: | → blocker |
resolution: | → fixed |
status: | new → closed |
type: | → bug |
Reopened by spammer.
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)