Insert User Email into Form Automatically jQuery
<p>I am trying to grab text generated by javascript and paste it into a forms input value field. This is what I have so far:</p>

<pre><code>var txt=$('#grabemail').text();
$('#email').val(unescape(txt));

&lt;p id="grabemail" style="color:#fff;"&gt;
  &lt;script type="text/javascript"&gt;formData.display("email")&lt;/script&gt;
&lt;/p&gt;
</code></pre>

<p>The only problem is that when the jQuery grabs the text from #grabemail it not only takes the email but it also takes 'formData.display' so I end up with:</p>

<p>formData.display("email")user@email.com</p>

<p>In the field as opposed to just the email.</p>

<p>I cannot edit the JS inside of the #grabemail div.</p>

<p>Anybody have any ideas on how to fix this?</p>
