/ Published in: JavaScript
useful if you only want digits as input
Expand |
Embed | Plain Text
<input type="text" onkeyup="this.value = this.value.replace (/\D+/, '')" name="quantity" value="1" >
You need to login to post a comment.
webstylr on 11/09/10
1 person have marked this snippet as a favorite
useful if you only want digits as input
<input type="text" onkeyup="this.value = this.value.replace (/\D+/, '')" name="quantity" value="1" >
You need to login to post a comment.