How to get a count of all checked checkboxes on a page

Use the size() method or the length property. The length property is preferred as it is faster.

Example:

var count = $("[type="checkbox"]:checked").length;

Leave a Comment