Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find the length of checked in js

var checkbox = document.getElementsByName('ckbox[]');
var ln = 0;
for(var i=0; i< checkbox.length; i++) {
    if(checkbox[i].checked)
        ln++
}
alert(ln)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #length #checked #js
ADD COMMENT
Topic
Name
7+1 =