JavaScript
Article

jQuery count the number of checked checkboxes

By Sam Deering

Simple jQuery code snippet to count the number of checkboxes checked in a table.

$('#table :input[type="checkbox"]:checked').length
Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.