showing results for - "error cannot set property 27visibility 27 of undefined"
Isaac
16 Oct 2016
1function openNav() {
2  // document.getElementById("mySidenav").style.width = "250px";
3  targList = document.getElementsByClassName("targ");
4  document.getElementsByClassName("targ")
5  if (targList) {
6    for (var x = 0; x < targList.length; x++) {
7      targList[x].style.visibility = "hidden";
8    }
9  }
10  document.getElementById("targimg").style.textAlign = "center";
11}
Harold
30 Sep 2018
1document.getElementsByClassName("targ").forEach(e => e.style.visibility = "hidden");
2