Answers for "how to read node list values in js"

0

how to read node list values in js

const myNodelist = document.querySelectorAll("p");
for (let i = 0; i < myNodelist.length; i++) {
  myNodelist[i].style.color = "red";
}
Posted by: Guest on October-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language