immunity Posted June 20, 2007 Share Posted June 20, 2007 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; } Link to comment https://forums.phpfreaks.com/topic/56341-javascript-runtime-error-object-expected-on-variable-definition/ Share on other sites More sharing options...
Corona4456 Posted June 20, 2007 Share Posted June 20, 2007 It depends on what the element is... what's the "account" element supposed to be? Link to comment https://forums.phpfreaks.com/topic/56341-javascript-runtime-error-object-expected-on-variable-definition/#findComment-278644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.