Answers for "Finding HTML Elements by HTML Object Collections"

0

Finding HTML Elements by HTML Object Collections

const x = document.forms["frm1"];

let text = "";

for (let i = 0; i < x.length; i++) {
  text += x.elements[i].value + "<br>";
}
document.getElementById("demo").innerHTML = text;
Posted by: Guest on August-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language