Skip to main content

Bug Tracker

Side navigation

#13964 closed bug (notabug)

Opened May 29, 2013 09:13PM UTC

Closed May 29, 2013 11:09PM UTC

clone and checked property on radio buttons

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:

If the summary is a little vague, it's because I get the "Aw, Snap!" page if no other "possible related tickets" (I guess that's another bug in itself)

The problem: When I clone a section with radio buttons in it, the default checked buttons are not appearing checked IN CHROME ONLY. (only tested in FF and Chrome). It works fine in Firefox.

Here is the exact line I'm using to clone:

$('#zombieClassTemplate').clone(true).attr('id', 'zombieClass' + totalClasses).appendTo('#zombieClasses .accordion');

Workaround: Looping through and doing .prop('checked', false); .prop('checked', true); fixes it in chrome.

Attachments (0)
Change History (2)

Changed May 29, 2013 10:50PM UTC by anonymous comment:1

Update: This is my mistake. It turns out the 'checked' attribute was being overwritten by another template class. It's not related to jQuery at all. Mark as invalid.

Changed May 29, 2013 11:09PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed