Copying the contents of a div and paste it to the Preview window using JQuery
<p>i am creating a pop-up window and i want to show the contents of a Div in  the pop-up window.How to copy the contents of the Background WIndow and to make them to append it to pop-up window .Since i want to show the same preview of the backend panel in the pop-up window .How to do so.</p>

<p>WHere, my background panel is </p>

<pre><code> &lt;div id="fb_contentarea_down21"&gt;
      &lt;div id="field1"&gt;
         &lt;input id="input1"&gt;&lt;/input&gt;
      &lt;/div&gt;
      &lt;div id="field2"&gt;
        &lt;textarea id="input2"&gt;&lt;/textarea&gt;
      &lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>And i want to show these things(background) to the Preview window how to do so.
the following is the Pop-up window..</p>

<pre><code>   &lt;div id="popupContact" style="position: absolute; top: 208px; left: 436px; display: none;"&gt;
 &lt;a id="popupContactClose"&gt;x&lt;/a&gt;
 &lt;h1&gt;Title of our cool popup, yay!&lt;/h1&gt;
 &lt;p id="contactArea"&gt;

 &lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>How to show the contents of fb_contentarea_down21 in the ContactArea...</p>
