title: Array of element of the same class javascript
body: <p>How get an array of the values of elements which have same class?</p>
  
  <p>When I do this I get only the first element, but I want a whole array:</p>
  
  <pre><code>var classes = document.querySelector(".klass").value;
  alert(classes); //Outputs only the first element
  </code></pre>
  
  <p>And I want to get a full array of the values of the inputs:</p>
  
  <pre><code>&lt;input type="text" class="klass" /&gt;
  &lt;input type="text" class="klass" /&gt;
  &lt;input type="text" class="klass" /&gt;
  </code></pre>
  
  <p>Is that possible?</p>