Skip to main content

Bug Tracker

Side navigation

#14009 closed bug (duplicate)

Opened June 11, 2013 08:59PM UTC

Closed June 12, 2013 04:31AM UTC

Unable to check a checkbox twice (1.10.1)

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


I have a very odd problem:

I can check + uncheck a checkbox once, but not more!


<script type="text/javascript" src="jquery-1.10.1.min.js">
<input type="checkbox" id="test"/><label for="test">test</label>

I tried (all twice of course):

$('#test').attr('checked',true); $('#test').attr('checked',false);
$('#test').attr('checked','checked'); $('#test').removeAttr('checked');

It works once, but not more.

Tested on 1.10.1 and 1.9.1. Works perfectly on 1.4.4.

Tested on Chrome 27.0.1453.110 m & 21.0

Attachments (0)
Change History (3)

Changed June 11, 2013 09:01PM UTC by siko comment:1

21.0 meant Firefox 21.0 of course.

Changed June 11, 2013 09:06PM UTC by anonymous comment:2

And a jsFiddle as a demo:

Changed June 12, 2013 04:31AM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

Duplicate of #13573.Use .prop().