count number of checkboxes in html jquery
snippet in javascript

count number of checkboxes in html jquery

user1404

var numberOfChecked = $('input:checkbox:checked').length;
var totalCheckboxes = $('input:checkbox').length;
var numberNotChecked = totalCheckboxes - numberOfChecked;