title: Query selector Class not working in Number Validation
body: <p>I have a Number validation in JavasCript.Works very well just in one input Number ,but I need some input's validation,I tried to do this with jquery selector class but it's only validating one of the them.How can I do this?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input id="dsa" type="number" class="css" min="0" max="10" /&gt;
  &lt;input id="dsa1" type="number" class="css" min="0" max="10" /&gt;
  &lt;input id="dsa2" type="number" class="css" min="0" max="10" /&gt;
  </code></pre>
  
  <p>JAVASCRIPT/Jquery</p>
  
  <pre><code>var input = document.querySelector('.css');
  input.onkeyup = function testNums(evt) { 
  var num = parseInt(evt.target.value, 10);
  
   if(typeof num === "number" &amp;&amp; num &lt; 11 &amp;&amp; num &gt; -1){
     evt.target.value = num
   }
  
   else{
    evt.target.value = ''
   }  
  
  
  };
  </code></pre>
  
  <p><a href="http://jsfiddle.net/NL43y/" rel="nofollow">http://jsfiddle.net/NL43y/</a></p>
  
  <p>Thanks in advance.</p>