Bug Tracker

Opened 13 years ago

Closed 10 years ago

Last modified 8 years ago

#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: &#34
Blocked by: Blocking:

Description (last modified by dmethvin)

$("#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.html (681 bytes) - added by chocolateboy 13 years ago.
Firefox test case for bug #167
firefox.2.html (681 bytes) - added by chocolateboy 13 years ago.
Firefox test case for bug #167

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by chocolateboy

Attachment: firefox.html added

Firefox test case for bug #167

comment:1 Changed 13 years ago by chocolateboy

Keywords: checked added; rev249 removed
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 13 years ago by chocolateboy

Attachment: firefox.2.html added

Firefox test case for bug #167

comment:2 Changed 13 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

comment:3 Changed 13 years ago by joern

Resolution: fixed
Status: newclosed

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

comment:5 Changed 10 years ago by dmethvin

Component: ajax
Description: modified (diff)
need: Review
Priority: blocker
Resolution: fixed
Status: newclosed
Type: bug

Reopened by spammer.

Note: See TracTickets for help on using tickets.