Use the size() method or the length property. The length property is preferred as it is faster.
Example:
var count = $("[type="checkbox"]:checked").length;
Use the size() method or the length property. The length property is preferred as it is faster.
Example:
var count = $("[type="checkbox"]:checked").length;