Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check all checkboxes in page

(function() {
    var aa= document.getElementsByTagName("input");
    for (var i =0; i < aa.length; i++){
        if (aa[i].type == 'checkbox')
            aa[i].checked = true;
    }
})()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #checkboxes #page
ADD COMMENT
Topic
Name
3+8 =