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: | andrewborba10@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
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.