Skip to main content

Bug Tracker

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:

function cball(o) {

o = $(o);

var obj = o.parent().next('.cb').find(':checkbox');

if (o.find(':eq(0)').is(':checked'))

obj.attr('checked', '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 anonymous comment:1

Same with removeAttr('selected')

Changed January 29, 2013 01:34PM UTC by gibson042 comment:2

owner: → anonymous
status: newpending

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 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: Open the link and click to "Fork" (in the top menu) to get started.

Changed January 31, 2013 01:24PM UTC by dmethvin comment:3

resolution: → duplicate
status: pendingclosed

Duplicate of #13245.