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

Member Avatar for stbuchok

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.