title: How can I prevent letters inside a text element?
body: <p>I like to have an input with maximum length 3.</p>
  
  <p>These input value should be only numbers no letters.</p>
  
  <p>By referring to this post: <a href="https://stackoverflow.com/questions/9361193/why-is-input-type-number-maxlength-3-not-working-in-safari">why is &lt;input type=&quot;number&quot; maxlength=&quot;3&quot;&gt; not working in Safari?</a> you can see that I <strong>can't use</strong> <code>&lt;input type="numbers"&gt;</code></p>
  
  <p>So how can I prevent letters inside an text-input-element?</p>