Link to home
Create AccountLog in
Avatar of tom1234
tom1234Flag for Korea, Republic of

asked on

copy children in jquery

<div id="parent">
      <div id="child">
           <div id="child_sub">
            </div>
      </div>
</div>


how can I clone the element of 'id : parent'.
I want to copy the all of child and child of child.

Thanks in advnace
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.