title: Regex pattern should allow only integers from 0 to 100 not allow decimal points
body: <p>I have an input box and what I need is it should only allow values from 0 to 100 and It should not allow to enter decimal precision should allow only integers like 10, 25,...etc and not 10.5,0.5... etc.</p>
  
  <p>What I tried is as follows:</p>
  
  <pre><code>&lt;input   id="discount" name="discount"  placeholder="Discount" autocomplete="off" type="number" inputmode="numeric" pattern="[0-9]*" value="0" maxlength="2"&gt;
  </code></pre>
  
  <p><a href="https://jsfiddle.net/x7kz3rqv/1/" rel="nofollow noreferrer">FIDDLE</a></p>
  
  <p>Need to modify the <code>pattern="[0-9]*"</code>.</p>
  
  <p>Please guide me.</p>