Created
March 20, 2012 12:56
-
-
Save gpassarelli/2135071 to your computer and use it in GitHub Desktop.
jQuery: Check if Checkbox is Checked
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
/* Find out if a single checkbox is checked or not, returns true or false:*/ | |
$('#checkBox').attr('checked'); | |
/* Find all checked checkboxes: */ | |
$('input[type=checkbox]:checked'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment