Return to Snippet

Revision: 4131
at October 28, 2007 07:23 by arcturus


Initial Code
function checkNumeric(value){
		var anum=/(^\d+$)|(^\d+\.\d+$)/
		if (anum.test(value))
			return true;
		return false;
    }

Initial URL

                                

Initial Description
With decimal separator "."

Initial Title
Check if a value is numeric or not

Initial Tags
javascript

Initial Language
JavaScript