Created
July 26, 2012 03:39
-
-
Save ekka21/3180107 to your computer and use it in GitHub Desktop.
jQuery: check all checkboxes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First way | |
$('#checkBox').attr('checked'); | |
// Second way | |
$('#edit-checkbox-id').is(':checked'); | |
//input name array | |
$('input[name=SOME_NAME\\[\\]]').is(':checked') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment