Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#13245 closed bug (notabug)

Checkbox checked state behaviour diff after upgrade to 1.9

Reported by: vitaliykhamin@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:

Description

Hello!

I see the difference between 1.9 and 1.8.x in case of multiple clicks on first checkbox here: http://jsfiddle.net/zKs8S/

Sorry if dup :)

Change History (28)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

Use .prop() to get or set the dynamic, changing, visual state of a checkbox.

http://jquery.com/upgrade-guide/1.9/#attr-versus-prop-

comment:2 Changed 10 years ago by dmethvin

#13334 is a duplicate of this ticket.

comment:3 Changed 10 years ago by dmethvin

#13358 is a duplicate of this ticket.

comment:4 Changed 10 years ago by dmethvin

#13345 is a duplicate of this ticket.

comment:5 Changed 10 years ago by gibson042

#13369 is a duplicate of this ticket.

comment:6 Changed 10 years ago by dmethvin

#13454 is a duplicate of this ticket.

comment:7 Changed 10 years ago by gibson042

#13500 is a duplicate of this ticket.

comment:8 Changed 10 years ago by Timmy Willison

#13519 is a duplicate of this ticket.

comment:9 Changed 10 years ago by gibson042

#13573 is a duplicate of this ticket.

comment:10 Changed 10 years ago by dmethvin

#13833 is a duplicate of this ticket.

comment:11 Changed 10 years ago by Timmy Willison

#13845 is a duplicate of this ticket.

comment:12 Changed 10 years ago by Timmy Willison

#13863 is a duplicate of this ticket.

comment:13 Changed 10 years ago by Timmy Willison

#13876 is a duplicate of this ticket.

comment:14 Changed 10 years ago by Timmy Willison

#13895 is a duplicate of this ticket.

comment:15 Changed 10 years ago by m_gol

#13920 is a duplicate of this ticket.

comment:16 Changed 10 years ago by dmethvin

#13958 is a duplicate of this ticket.

comment:17 Changed 10 years ago by dmethvin

#13979 is a duplicate of this ticket.

comment:18 Changed 10 years ago by Timmy Willison

#14112 is a duplicate of this ticket.

comment:19 Changed 10 years ago by gibson042

#14437 is a duplicate of this ticket.

comment:20 Changed 10 years ago by gibson042

#14518 is a duplicate of this ticket.

comment:21 Changed 10 years ago by dmethvin

#14501 is a duplicate of this ticket.

comment:22 Changed 10 years ago by dmethvin

#14539 is a duplicate of this ticket.

comment:23 Changed 10 years ago by m_gol

#14571 is a duplicate of this ticket.

comment:24 Changed 9 years ago by Timmy Willison

#14602 is a duplicate of this ticket.

comment:25 Changed 9 years ago by gustavorafael93@…

HTML:

<div id="sample">
    <input type="checkbox"> 
    <input type="checkbox"> 
    <input type="checkbox">
<div>
<input id="checkAll" type="checkbox">

JQuery

$("#checkAll").click(function() {
    
    var checked = $(this).is(":checked");
    
    // hack
    $("div#sample input[type=checkbox]").each(function() {
        $(this)[0].checked = checked;
    });
    
});

comment:26 Changed 9 years ago by dmethvin

#14651 is a duplicate of this ticket.

comment:27 Changed 9 years ago by Timmy Willison

#14774 is a duplicate of this ticket.

comment:28 Changed 9 years ago by Timmy Willison

#15152 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.