Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check all checkboxes on 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 salesforcescool.blogspot.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #checkboxes #page
ADD COMMENT
Topic
Name
4+1 =