how to get form elements in javascript code example
Example: html get form elements
var x = document.getElementById("myForm");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
console.info(x.elements[i].value);
}
var x = document.getElementById("myForm");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
console.info(x.elements[i].value);
}