3

I have a input that only allows number. but if I do copy paste something else then number it will allow it.

How can I make sure that he only allows number and nothing else (even after copy paste)

<input type="text" name="people" onkeypress='return event.charCode >= 48 && event.charCode <= 57'/>
Hitmands
  • 13,491
  • 4
  • 34
  • 69
namzaG
  • 582
  • 3
  • 20

0 Answers0