Check if Checkbox is Checked

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Say that 10 times fast =).

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');