Thursday, 19 July 2018

Javascript: getElementByClassName change all class from js

<h2 class="title">This text will change</h2>
<script>
var x = document.getElementsByClassName("title");
var i;
for (i = 0; i < x.length; i++) {
    x[i].innerHTML= "This text has changed";
}
</script>

debug VISUAL STUDIO CODE Error Fetch Extensions

 Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...