Skip to main content

Bug Tracker

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: &#34
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)
  • firefox.2.html (0.7 KB) - added by chocolateboy September 04, 2006 08:43PM UTC.

    Firefox test case for bug #167

  • firefox.html (0.7 KB) - added by chocolateboy September 04, 2006 08:40PM UTC.

    Firefox test case for bug #167

Change History (4)

Changed September 04, 2006 08:43PM UTC by chocolateboy comment:1

keywords: attr, rev249attr, checked
milestone: 1.0
priority: minormajor
version: 1.0b1

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)

Changed September 04, 2006 08:48PM UTC by chocolateboy 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 joern comment:3

resolution: → fixed
status: newclosed

Added a testcase for this to SVN; The 'fix' hash already contains checked

Changed October 11, 2009 02:11PM UTC by dmethvin 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: newclosed
type: → bug

Reopened by spammer.