Skip to content

Instantly share code, notes, and snippets.

@gpassarelli
Created March 20, 2012 12:56
Show Gist options
  • Save gpassarelli/2135071 to your computer and use it in GitHub Desktop.
Save gpassarelli/2135071 to your computer and use it in GitHub Desktop.
jQuery: Check if Checkbox is Checked
/* 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