clone problem

Discussion in 'JavaScript' started by neilfurry, Jul 6, 2017.

  1. #1
    hi Mate,

    its me again and now having a hard time to solve this problem.

    here is jsfiddle link:

    https://jsfiddle.net/11oLbzf6/4/

    Here is what i need:

    regardless of the number of children the first mother have, i only want to clone first mother and one child when i click clone mother button.

    So if the first mother have multiple child i only want one child and the mother to be cloned above the original mother.

    I hope you can help me with this.

    Cheers!
    Neil
     
    neilfurry, Jul 6, 2017 IP
  2. neilfurry

    neilfurry Active Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #2

    I think i got it already, but if you have other solutions in mind just let me know.

    Here is how i solved what i want:

    https://jsfiddle.net/11oLbzf6/8/

    Cheers!

    Neil
     
    neilfurry, Jul 6, 2017 IP