Pastetool - IsNumeric

URL: , Paste another

function IsNumeric(sText) {
   var ValidChars = "0123456789.";
   
   for (i = 0; i < sText.length; i++)
	  if (ValidChars.indexOf(sText.charAt(i)) == -1) 
		 return false
   return true
}

Download code

This javascript code was pasted on September 25, 2009




Protected with advance Anti-SPAM techniques :)
Coded and designed by Fedmich
Follow us on Twitter