Home > Blockchain >  TypeError: document.getElementByClassName is not a function
TypeError: document.getElementByClassName is not a function

Time:10-28

I'm trying to change the value of <p ><p> in html via javascript, but nothing changes when I run the code.

<div class="container">
  <h1>Refresh Me</h1>

  <div class="dice">
    <p>Player 1</p>
    <img class="img1" src="">
    <p class="dice1"></p>
  </div>
</div>
<script src="dice.js" charset="utf-8"></script>
www
  • Related