HTML number input min and max not working properly

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

    This work perfect for geographic coordinates when you have general function document EventListener "keydown" in my example i use bootstrap class.

    
    

    If you want you can create a function with this code but i preferred this method.

提交回复
热议问题