I have two divs as follows:
<div id='div1'>
<p>Hello world!</p>
</div>
<div id='div2'>
</div>
<a id='test' href='javascript:void()'>Click me to fill in div2</a>
I have been wondering what should be the best way to fill in div2 with the content of div1 onclick using jquery in order to have
<div id='div1'>
<p>Hello world!</p>
</div>