is possible to make html input type number only show numbers which are multiple of 5 -


is possible make html input type number shows numbers multiple of 5 (5,10,15....)?

    <input type="number" name="pax"> 

for html 5 only

<input type="number" name="pax" step="5"> 

there other javascript or regex solutions shouldn't necessary.

further reading on type input: http://www.w3schools.com/html/html_form_input_types.asp

here example using more popular attributes of number inputs.

<input type="number" name="pax" min="0" max="100" step="5" value="0"> 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - href attribute breaking an element -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -