Edit This Code:
<!DOCTYPE html>
<html>
<body>

<p>
Depending on browser support:<br>
Fixed steps will apply in the input field.
</p>

<form action="action_page.php">
  Quantity:
  <input type="number" name="points"
   min="0" max="100" step="10" value="30"
>

  <input type="submit">
</form>

<p><b>Note:</b>type="number" is not supported in IE9 and earlier.
</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy