Sets or gets the maximum value for a text input element whose type is set to Number.
Setting the max
property restricts users from changing
the text input's value to a number greater than max
if the
text input is set to be a Number type. However, it does not limit
your ability to change the value to a number greater than max
programmatically.
Set max
to undefined
to remove the current maximum value limitation.
Getting the max
property returns the maximum value a user
can enter into the text input.
You can also set an element's max
property in the Editor using the Settings pane: