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) it was working before I made the latest round of changes...

But it keeps coming up null.

Any suggestions would be appreciated.

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">
b0lsc0ttConnect With a Mentor IT ManagerCommented:

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.

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.
HonorGodConnect With a Mentor Commented:
1 possibility is a syntax error in the element associated with the specified ID
codequestAuthor Commented:
Thanks for input.  This is resolved...must have been what callrs suggested.   Points to others for cross-validation.
All Courses

From novice to tech pro — start learning today.