Here below a javascript function to recall the PHP isNumeric behaviour:
1 2 3 4 5 6 |
function isNumeric (n) { if (typeof(n)=="string") { n = n.replace(",", "."); } return !isNaN(parseFloat(n)) && isFinite(n); } |
is_numeric() in Javascript





