Is there any difference between $.isNumeric and !isNaN()?
I don’t see where they will ever return different results.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the jQuery blog:
Also see the ticket: http://bugs.jquery.com/ticket/10478
jQuery’s
isNumeric()checks if a value is a number OR can be converted to a number.EDIT
To further clarify what
isNan()does (and what a NaN value is):http://www.devguru.com/technologies/ecmascript/quickref/isnan.html
Semi offtopic, but related is this short talk