title: How to restrict max value on html5 number input on manual entry
body: <p>Free jqgrid column is defined to use html5 number input type like</p>
  
  <pre><code>{ name: "amount", width: 62, template: "number",
               formatter: "number", formatoptions: {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 4, defaultValue: '0.0000'},
                 editoptions: {
                     maxlength; 4
                     type: "number", 
                     max: 9999
                 } },
  </code></pre>
  
  <p>It allows to enter numbers from keyboard greater than 9999.
  <code>max: 9999</code> affects only to entry using spinner.</p>
  
  <p>How to fix this so that keyboard entry cannot exceed 9999 ?</p>
  
  <p>testcase is at</p>
  
  <p><a href="http://jsfiddle.net/jhckz7rr/3/" rel="nofollow noreferrer">http://jsfiddle.net/jhckz7rr/3/</a></p>
  
  <p>It allows to manually enter numbers greater that 9999 into Amount column. How to restrict manual entry to 9999 ?
  I tried also to use string max value <code>max: '9999'</code> but problem persists.</p>
  
  <p><a href="https://i.stack.imgur.com/Y29NF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y29NF.png" alt="big"></a></p>
  
  <p>If input type is text, input respects maxlength value.</p>