1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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/
    SEMrush
    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
    SEMrush
  2. neilfurry

    neilfurry Member

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #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