Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
JAva Script Validation for Text box Accepting Only Numbers Please Help Me
Posted
Comments
Have you searched anything on Google and implemented yourself yet?

Follow the link given below:


Text-box-to-accept-only-number



Don't forget to mark useful responses as Answer if they helped you towards a solution.
 
Share this answer
 
Javascript function

C#
function isNumber(n) {
  return !isNaN(parseFloat(n)) && isFinite(n);
}


for more detail go to
Validate numbers in JavaScript - IsNumeric()[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900