/ Published in: JavaScript
Works !
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function isNumeric(input) { return (input - 0) == input && input.length > 0; }
URL: http://www.ansermot.ch/devs/snippets/2011/javascript-test-if-variable-is-numeric.html