web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Validate numbers in JavaScript more than IsNumeric() can do

Zhongchen Zhou Profile Picture Zhongchen Zhou 681

JQUERY 1.7 now include jQuery.isNumeric( value ) function which can determines whether its argument is a number

http://api.jquery.com/jQuery.isNumeric/

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

http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric


Filed under: JavaScript Tagged: JavaScript

This was originally posted here.

Comments

*This post is locked for comments