Allow only Number to Text field using JavaScript

Must Read : Allow only Number to Text field using JavaScript

Hi Here is the small piece of code that will just allow user to enter the numbers in text field
Just add ‘onkeypress=”return isNumber(event)”‘ to text field and put this below java script.

 

(Visited 45 times, 1 visits today)

Leave a Comment.