#javascript-code-20-removeattribute.js / js
// Find all the form input elements var input = document.getElementsByTagName(“input”); for ( var i = 0; i < input.length; i++ ) { // Find all the checkboxes if ( input[i].getAttribute(“type”) == “checkbox” ) { // Uncheck the checkbox input[i].removeAttribute(“checked”); } }
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.