Jump to content

Javascript Runtime error :Object expected (on variable definition)


immunity

Recommended Posts

when i try to put :

var text = document.getElementById("account").value;

it popup me this error :/

 

Also this error pop up when i try

if(IsNumeric()){....}

function IsNumeric()
{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;


   for (i = 0; i < document.getElementById("phone").value.length && IsNumber == true; i++) 
	  { 
	  if (ValidChars.indexOf(document.getElementById("phone").value.charAt(i)) == -1) 
		 {
		 IsNumber = false;
		 }
	  }
   return IsNumber;
   
   }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.