Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check length checkbox has been checked

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

//or
var numberNotChecked = $('input:checkbox:not(":checked")').length;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #length #checkbox #checked
ADD COMMENT
Topic
Name
3+3 =