html5 - Input type="number" with not mandatory step attribute -
i have input in form step
defined 3
:
<form> <input name="surface" id="surface" type="number" step="3" /> </form>
i able enter number not multiple of step, it's refused @ validation browser.
in example, if insert "2.5" in input, message error i've got is:
please select valid value. 2 closest values 0 , 3.
is possible make step not mandatory?
i've tried add novalidate="novalidate"
attribute doesn't work.
after more research, appears it's not possible make step non mandatory on html5 input.
i'll have implement custom number input (in jquery or else) achieve this.
Comments
Post a Comment