You need to use .prop() to set the checked property
$("#checkAll").click(function(){
$('input:checkbox').not(this).prop('checked', this.checked);
});
Demo: Fiddle
More Related Contents:
- Using jquery check/uncheck SelectAll checkbox when all the checkboxes in the group are checked/unchecked
- How do I check whether a checkbox is checked in jQuery?
- Setting “checked” for a checkbox with jQuery
- Check if checkbox is checked with jQuery
- jQuery checkbox change and click event
- How to stop event bubbling on checkbox click
- jQuery difference between change and click event of checkbox
- Testing if a checkbox is checked with jQuery
- jquery attr(‘checked’,’checked’) works only once
- What the difference between .click and .change on a checkbox [duplicate]
- How to select all checkboxes with jQuery?
- How do I encode a JavaScript object as JSON?
- How do i disable a submit button when checkbox is uncheck?
- Possible to associate label with checkbox without using “for=id”?
- How to check in js that user has checked the checkbox in Google recaptcha?
- How to reset all checkboxes using jQuery or pure JS?
- Why isn’t my checkbox change event triggered?
- jQuery AJAX cross domain
- Detect browser or tab closing
- Last segment of URL with JavaScript
- $(document).ready shorthand
- Why define an anonymous function and pass it jQuery as the argument?
- Why can’t I use onClick to execute a function inside a jQuery $(document).ready function?
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Check if element is between 30% and 60% of the viewport
- How do I save/export an SVG file after creating an SVG with D3.js (IE, safari and chrome)?
- Changing cursor to waiting in javascript/jquery
- Bootstrap modal hide is not working
- Returning value from confirmation dialog using JQuery UI dialog
- A non-nested animation sequence in jQuery?