//select all input tagsfunction SelectAll() {var checkboxes = document.getElementsByTagName("input");for(i=0;i<checkboxes.length;i++) {if(checkboxes.item(i).attributes["type"].value == "checkbox") {checkboxes.item(i).checked = true;}}}
Javascript
Topic: JS Validation
To set all checkboxes to true using JavaScript?
Browse random answers:
What is a JavaScript Form Validation?
To set all checkboxes to true using JavaScript?
How to find radio button selection when a form is submitted?
How do you check validations in Javascript?
How to validate a email-address, in form using Javascript?