Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
Event registration app with QR/Paypal
Home
▼
Wednesday, March 16, 2011
How to check if an argument is not a number in Javascript
isNaN function
Evaluates an argument to determine if it is not a number.
isNaN("string") //returns true
isNaN("12") //returns false
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/isNaN
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment