Answers for "not allow decimal in input type number"

0

not allow decimal in input type number

<form action="#" method="post">
  Numbers: <input name="num" 
                  type="number"
                  min="1"
                  step="1"
                  onkeypress="return event.charCode >= 48 && event.charCode <= 57"
                  title="Numbers only">
  <input type="submit">
</form>
Posted by: Guest on February-03-2022

Code answers related to "not allow decimal in input type number"

Browse Popular Code Answers by Language