title: Don't allow typing alphabetic characters in a <input type=number />
body: <p>I need to have a textbox, where, whenever typed inside should ONLY allow numbers [0-9]. I've used <code>type="number"</code> which definitely holds the client side validation but also allows to type other alphabets. I can do it by tracking each keydown and matching with regex but I was wondering if there is any way I can restrict to type using only html tags and NOT defining any functions in JavaScript to compare in each keydown?</p>
  
  <p>Code not sufficient to do so is:</p>
  
  <pre><code>    &lt;input type="number" id="txt_number" maxlength="70" name="txt_name" placeholder="Number"&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>