title: how to get value by class name using javascript
body: <p>Sorry, it's basic one but I trying to search on google anyways but still not get success.</p>
  
  <p>I want get value of this </p>
  
  <pre><code>&lt;input type='hidden' class='hid_id' value='1' /&gt;
  </code></pre>
  
  <p><strong>Using Javascript</strong> I want alert value <code>1</code></p>
  
  <p>I trying this </p>
  
  <pre><code>var id = document.getElementsByClassName("hid_id");
  alert (id);
  </code></pre>
  
  <p>But it's alert <code>[object HTMLInputElement]</code></p>
  
  <p>please help me now.</p>