Add a child to a child with Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ASProoky
    New Member
    • Feb 2007
    • 13

    Add a child to a child with Javascript

    Hi everybody,
    Can anyone please help me sending me some code to add a child to a child with JavaScript?
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Here at TSDN we are more than happy to assist you with your errors but we will/do not provide full code for those who do not attempt the problem themselves, please attempt the question and post the section of code that is giving you a problem.

    thank you

    Comment

    • ASProoky
      New Member
      • Feb 2007
      • 13

      #3
      Originally posted by epots9
      Here at TSDN we are more than happy to assist you with your errors but we will/do not provide full code for those who do not attempt the problem themselves, please attempt the question and post the section of code that is giving you a problem.

      thank you
      Hi epots9,
      I have about 3 or 4 files that I use to create my menu and I don't think that all this is going to fit, so is there a way for me to send you the files?

      Comment

      • RMWChaos
        New Member
        • Oct 2007
        • 137

        #4
        Originally posted by ASProoky
        I have about 3 or 4 files that I use to create my menu and I don't think that all this is going to fit, so is there a way for me to send you the files?
        ASProoky,

        You don't have to provide all the code. Just show us the relevant pieces where you are attempting to add the child.

        I will give you hint, however: In your document, get the parent element (where you want to put the new node) by its id and then append the child as you create the new element. =D

        Depending on whether the parent is 'head', 'body', or some 'div' will determine the method you use to grab the parent.

        Comment

        Working...