Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery input only integers

<input name="number" onkeyup="if (/D/g.test(this.value)) this.value = this.value.replace(/D/g,'')">
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #input #integers
ADD COMMENT
Topic
Name
9+7 =