title: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection
body: <p>I added the code below to select whole text when user click on input box:</p>
  
  <pre><code>&lt;input type="number" onclick="this.setSelectionRange(0, this.value.length)" name="quantity" /&gt;
  </code></pre>
  
  <p>But I receive the error below:</p>
  
  <blockquote>
    <p>Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.</p>
  </blockquote>