Answers for "loop all the elements in form JavaScript"

0

loop all the elements in form JavaScript

var x = document.forms;
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
  txt = txt + x[i].id + "<br>";
}
Posted by: Guest on October-14-2021

Code answers related to "loop all the elements in form JavaScript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language