We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

2
Contributors
2
Replies
19 Hours
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
deshazer.jad
Newbie Poster
8 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

stbuchok
Practically a Posting Shark
875 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2

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
8 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 10 Months Ago by stbuchok

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0725 seconds using 2.69MB