how can i move an entire html div from one page to another using jquery here is an example :
index.html
<div id="parent1" class="con">
<h1>text</h1>
<p>Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod t
empor incididunt ut labore et dolore
<span class="icon">icon</span>
</p>
</div>
<a href="#" class="btn">click me</a>
</div>
input.html
<div id="parent2" class="con">
</div>
I want when I click on the btn
I move what is inside #parent1
to the #parent2
that is in the input.html
page
any help please and thank you in advance I have read that question but it didn't help me solve the problem
How to move all HTML element children to another parent using JavaScript?