Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Number input validation in javascript. How can I do it?
Posted
Comments
jim lahey 15-Feb-11 5:46am    
Put the same question into Google..

1 solution

Use isNaN to check whether a value is number or or not.
Example:

http://www.plus2net.com/javascript_tutorial/math-isnan.php[^]
 
Share this answer
 
v2
Comments
Paritosh Das 17-Feb-11 10:03am    
Thank you very much.It's really helpful for me.

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