javascript value before @ sign
<p>I'm trying to suggest username for sign up page with jquery. im just wondering how can i get the value of email address before <code>@</code> sign. right now i can get complete value with </p>

<pre><code>$("#email").val(); 
</code></pre>

<p>should i split it by <code>@</code> or some other way?</p>
