Set Min and Max Value in Input Field

In this post, you will learn how to limit an HTML input box so that it only accepts numeric input.



Step-1

Make input box type text to number

Step-2



Use Attributes min and max to limit the number, Check the below example.

 

Set Min and Max Value in Input Field



 

Below HTML Code

 

 



Tags: