title: set value of html input elements by class with javascript in browser?
body: <p>I need set value of a bunch of input boxes based on class (class="Qty")</p>
  
  <p>this works if I use the ElementID</p>
  
  <pre><code>document.getElementById('G_Qty_0').value='101'
  </code></pre>
  
  <p>but this doesn't work</p>
  
  <pre><code>document.getElementsByClassName('Qty').value='100'
  </code></pre>
  
  <p>What gives?</p>
  
  <p>Cheers!</p>