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.getElementsByName('vechicle');
  for (var checkbox of checkboxes) {
    if (checkbox.checked)
      document.body.append(checkbox.value + ' ');
  }
}
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #checked #checkbox
ADD COMMENT
Topic
Name
1+8 =