/ Published in: JavaScript
With decimal separator "."
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function checkNumeric(value){ var anum=/(^\d+$)|(^\d+\.\d+$)/ if (anum.test(value)) return true; return false; }