/ Published in: JavaScript
With decimal separator "."
Expand |
Embed | Plain Text
function checkNumeric(value){ var anum=/(^\d+$)|(^\d+\.\d+$)/ if (anum.test(value)) return true; return false; }
You need to login to post a comment.
arcturus on 10/28/07
2 people have marked this snippet as a favorite
With decimal separator "."
function checkNumeric(value){ var anum=/(^\d+$)|(^\d+\.\d+$)/ if (anum.test(value)) return true; return false; }
You need to login to post a comment.