get form element javscript 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);
}