What is the JQuery code for this snippet?
<p>I have a parent page that contains a textarea and a link to open a child window. The child window has another textarea and a button. User enters some text in the textarea in the child window and clicks the button, a javascript gets fired that updates the content of the textarea in the parent window with that of the textarea of the child window and closed the child window. </p>

<p>I am currently doing this in javascript and it works fine, but since we will move to jQuery very soon how would one accomplish the same using jQuery.  </p>

<pre><code>page1.html
----------

&lt;script type="text/javascript"&gt;
    function newwin() {
        window.open('page2.html','','width=600');
    }
&lt;/script&gt;
&lt;body&gt; 
    &lt;textarea id='t1'&gt;
    &lt;a href="javascript:void(0)" onclick="newwin();"&gt;Click here&lt;/a&gt; 

&lt;/body&gt;


page2.html
----------
&lt;script type="text/javascript"&gt;
    function updateparent() {
        window.opener.document.getElementById('t1').value = document.getElementById('t2').value;
        window.close();
    }
&lt;/script&gt;
&lt;body&gt; 
    &lt;textarea id='t2'&gt;
    &lt;input type="submit" onclick="updateparent();"&gt; 
&lt;/body&gt;
</code></pre>
