title: javascript document.getElementsbyClassName is not a function
body: <p>I am trying to make function that searches my page for classes <code>ardiv</code> and then search these classes for class with name <code>hiddenid</code> but i am still getting error </p>
  
  <blockquote>
    <p>document.getElementsbyClassName is not a function.</p>
  </blockquote>
  
  <p>I have read many articles with same error but no solution helped me. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>function hledat() {
  
  var divs = document.getElementsbyClassName("ardiv");
  
  for (var i = 0; i &lt; divs.length; i++) {
      var para = divs[i].getElementsbyClassName( "hiddenid" ).value;
      alert( para );
  }
  
  }
  
  hledat();
  </code></pre>