Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html checkbox check all

function toggle(source) {
  checkboxes = document.getElementsByName('foo');
  for(var i=0, n=checkboxes.length;i<n;i++) {
    checkboxes[i].checked = source.checked;
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #checkbox #check
ADD COMMENT
Topic
Name
2+1 =