Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ACTIONSCRIPT

how to take value only from the checked checkbox

document.getElementById('select').onclick = function() {
  var checkboxes = document.querySelectorAll('input[type="checkbox"]:checked');
  for (var checkbox of checkboxes) {
    document.body.append(checkbox.value + ' ');
  }
}
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #checked #checkbox
ADD COMMENT
Topic
Name
9+7 =