HTML number input min and max not working properly

前端 未结 12 1595
野的像风
野的像风 2020-12-05 22:31

I have type=number input field and I have set min and max values for it:



        
12条回答
  •  有刺的猬
    2020-12-05 22:50

    if you still looking for the answer you can use input type="number".
    min max work if it set in that order:
    1-name
    2-maxlength
    3-size
    4-min
    5-max
    just copy it

    
    

    when you enter the numbers/letters manually (using the keyboard), and submit a little message will appear in case of letters "please enter a number" in case of a number out of tha range "please select a value that is no more/less than .."

提交回复
热议问题