I want to restrict user input to positive numbers in an html form.
I know you can set min=\"0\", however it is possible to bypass this by manually entering a negati
This uses Javascript, but you don't have to write your own validation routine. Instead just check the validity.valid property. This will be true if and only if the input falls within the range.
validity.valid