jQuery .contentWindow.document.getElementById('email_box').value help
<p>Hey all, i'm just wondering if there was any way to condense this line of code to pure jQuery without having the need to have ".contentWindow.document.getElementById('email_box').value" in there?</p>

<pre><code> $('#OIPHPFrame')[0].contentWindow.document.getElementById('email_box').value = $("#txtEmail").val();
</code></pre>

<p>and also the "click" event:</p>

<pre><code> $('#OIPHPFrame')[0].contentWindow.document.getElementById('butImport').click();
</code></pre>

<p>Any help would be awesome! :o)</p>

<p><B>SOLVED! :o)</B></p>

<pre><code> $('#OIPHPFrame').contents().find('#password_box').val($("#Password").val());
 $('#OIPHPFrame').contents().find('#butImport').click();
</code></pre>

<p>David</p>
