Restricting number input to an integer with max value - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input number

Description

Restricting number input to an integer with max value

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--   w  w w . j av  a  2  s .c  o m-->
 <body> 
  <input type="number" name="quantity" min="1" max="30">  
 </body>
</html>

Related Tutorials