javascript - HTML - Number Input Limit (Go Up/Go Down 10 to 10) -


i want when press arrow number change (increase) 0-to-10 /then/ 10-to-20 / 20-to-30 mean 10 10. , if press down arrow, number change (decrease) 10 10.

<input type="number" value="0" min="0" max="99999999" /> 

i don't know javascript or jquery well. couldn't found in google/stackoverflow. haven't code on jsfiddle.

you want step attribute. specifies how far increase or decrease number. example:

<input type="number" value="0" min="0" max="99999999" step="10" /> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -