Return to Snippet

Revision: 3797
at September 13, 2007 22:35 by scriptmakingcom


Initial Code
function showVals() {
theForm = document.getElementById('myform');
theStr = '';
for (i=0; i < theForm.elements.length; i++) {
ele = theForm.elements[i];
theStr += ele.name + ' : ' + ele.value + "\n";
}
alert (theStr);
}

Initial URL

                                

Initial Description

                                

Initial Title
Alert entire contents of form

Initial Tags
form

Initial Language
JavaScript