convert Javascript to jQuery
<pre><code> //Page A
 &lt;input type='text' id='tb'&gt;
 var returnedValue = showModalDialog('page2.aspx', window);

//Page B
&lt;input type='text' onkeypress='update(this);'&gt;

function update(Sender) {
var input = window.dialogArguments.document.getElementById("tb");
input.value = Sender.value;
}
</code></pre>

<p>can any one please convert this javascript code to Jquery?
I am good in javascript but not in jQuery.
Javascript is not my requirement.</p>
