Posted By

webstylr on 11/09/10


replace only-digits

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


No letters - only digits as input

 / Published in: JavaScript

useful if you only want digits as input

  1. <input type="text" onkeyup="this.value = this.value.replace (/\D+/, '')" name="quantity" value="1" >

Report this snippet  

You need to login to post a comment.