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; } Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.