Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
4+7 =