HTML number input min and max not working properly

前端 未结 12 1743
野的像风
野的像风 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:58

    Maybe Instead of using the "number" type you could use the "range" type which would restrict the user from entering in numbers because it uses a slide bar and if you wanted to configure it to show the current number just use JavaScript

提交回复
热议问题