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

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.