Answers for "html get form elements"

0

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);
}
Posted by: Guest on March-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language