document.getElementById fails

why might    document.getElementById("XYZ")     fail?    I can look at the page source and see the table ID "XYZ" in the page...and can only find one such ID (searched, using pagespy).....plus it was working before I made the latest round of changes...

But it keeps coming up null.

Any suggestions would be appreciated.

Thanks!
LVL 2
codequestAsked:
Who is Participating?
 
callrsConnect With a Mentor Commented:
Syntax error In the HTML or in the javascript. Try Firefox browser to pinpoint errors (In FF: Tools -> Javascript Console)

Is there an equal sign? Matched quotes? Matched case? etc.

<table id="XYZ">
0
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
codequest,

What were the changes you made?  Besides the good things mentioned by Callrs the message may be appearing because of what you are looking for when you get Null.  What is the line that is giving the Null?

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
codequestAuthor Commented:
Thanks for input.  Problem shifted...I'm working on a puzzle and this was a test case.  Points will be awarded...I'll leave this open a while to see if need reappears.
0
 
HonorGodConnect With a Mentor Commented:
1 possibility is a syntax error in the element associated with the specified ID
0
 
codequestAuthor Commented:
Thanks for input.  This is resolved...must have been what callrs suggested.   Points to others for cross-validation.
0
All Courses

From novice to tech pro — start learning today.