title: Get Element by Class instead of Id
body: <p>I have a button called WatchMode.</p>
  
  <p>When you click this button, it will close certain divs, specified by the div ID. </p>
  
  <p>The javascript for this is as follows:</p>
  
  <pre><code>function watchmode() { 
  document.getElementById('aps30').innerHTML = " ";
  } 
  </code></pre>
  
  <p>Now, I want to do the same for a div that appears twice on my page, this div has a Class instead of an ID.</p>
  
  <p>I tried adding this line to the javascript, but it doesn't seem to work</p>
  
  <pre><code>document.getElementByClassName('floater').innerHTML = " ";
  </code></pre>
  
  <p>Any suggestions ??</p>