Can one build a "mechanical" universal turing machine? By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Therefore using x.MAX_VALUE or x.MIN_VALUE will return undefined where x is a Number or Number Object. We can put a limit for a user to put values in a input type number. Tip: Use the max attribute together with the min attribute to create a range of legal values. Links. Browser Support . These state events can be utilized as automation triggers as well.. This is working on the current master, but if the min or max value is changed then the input field doesn't reconsider itself. Obviously, the minimum value you of the number. The format of the month string used by this input type is described in Format of a valid local month string in Date and time formats used in HTML. So you can get the max and min value from jquery and set the max and min value to the js. I have the following markup: In Google Chrome (and possibly other webkit browsers), this will restrict the spinner's up arrow from going over 99, but it does not prevent the user from typing a number higher than 99.