Return to Snippet

Revision: 16458
at August 4, 2009 18:39 by deftonez4me


Initial Code
function check() {
    	var checks = document.getElementById('checkboxes').getElementsByTagName('input');
    	var status = (document.getElementById('checkall').checked == 1) ? true : false;
        for(var x = 0; x < checks.length; x++) {
        	checks[x].checked = status;
        }        
    }

Initial URL

                                

Initial Description

                                

Initial Title
Javascript - Check All/Uncheck All checkbox function

Initial Tags
javascript

Initial Language
JavaScript