Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

input only accept numbers

<label for="salary">Enter your salary:</label>
<input type="text" id="salary" name="salary"
    oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(..*)./g, '$1');" />
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #input #accept #numbers
ADD COMMENT
Topic
Name
3+9 =