954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problems with getElementById()

It makes since that, when working with javascript, document.getElementById() can't find the Id of an object that hasn't yet been added to the DOM, however when I nest document.getElementById() in a function and call it after the object has been created, document.getElementById() still can't find the object.

is there a way around this? if not, can someone at least explain to me why it doesn't work?

Thank You

deshazer.jad
Newbie Poster
2 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

Please show your code. Without showing your code, there isn't much we can help you with.

stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

thank you for the help... I was going to post some examples, but I figured out the answer to my question

deshazer.jad
Newbie Poster
2 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: