Side navigation
#13345 closed bug (duplicate)
Opened January 29, 2013 09:42AM UTC
Closed January 31, 2013 01:24PM UTC
attr('checked', 'checked')
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
function cball(o) {
o = $(o);
var obj = o.parent().next('.cb').find(':checkbox');
if (o.find(':eq(0)').is(':checked'))
obj.attr('checked', 'checked');
else
obj.removeAttr('checked');
}
1.9 can not do this,1.8 is can do this
Attachments (0)
Change History (3)
Changed January 29, 2013 12:10PM UTC by comment:1
Changed January 29, 2013 01:34PM UTC by comment:2
owner: | → anonymous |
---|---|
status: | new → pending |
Thanks for taking the time to contribute to the jQuery project! I suspect that you intended to use .prop("checked", <boolean>)
instead of .attr
/.removeAttr
, but please read http://jquery.com/upgrade-guide/1.9/#attr-versus-prop- to confirm and test again with the jQuery migrate plugin.
If after doing so you still believe this to be a real issue, we'll need a complete reduced test case on jsFiddle to help us assess your ticket. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.
Same with removeAttr('selected')