Bug Tracker

Modify

Ticket #167 (closed bug: fixed)

Opened 7 years ago

Last modified 14 months ago

attr('checked', true) doesn't work

Reported by: mike@… Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: attr, checked Cc: &#34
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

firefox.html Download (681 bytes) - added by chocolateboy 7 years ago.
Firefox test case for bug #167
firefox.2.html Download (681 bytes) - added by chocolateboy 7 years ago.
Firefox test case for bug #167

Change History

Changed 7 years ago by chocolateboy

Firefox test case for bug #167

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)

Changed 7 years ago by chocolateboy

Firefox test case for bug #167

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

comment:3 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:5 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Description modified (diff)
  • Type set to bug
  • Component set to ajax
  • Priority set to blocker
  • need set to Review
  • Resolution set to fixed

Reopened by spammer.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.