Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html javascript input numbers only

<input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(..*?)..*/g, '$1');" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #javascript #input #numbers
ADD COMMENT
Topic
Name
3+5 =