/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function toggleDown(nm) {
// written by Daniel P 3/21/07
// toggle checkboxes down a whole column
var lastskuindex = document.getElementById('lastindex');
for ( i=0; i<=lastskuindex.value; i++ ) {
if (document.getElementById(nm+i).checked) { // this one is currently checked
document.getElementById(nm+i).checked = false;
} else {
document.getElementById(nm+i).checked = true;
}
} // looping down the rows
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                