Jquery remove line breaks on enter key press
<p>I have a keyup function on text area. When user press enter, cursor is going to next line and calculating white space.How do I remove it ?</p>

<p>Here is my code.</p>

<pre><code>data.keyup('#id',function(e)
                   {

                       code= (e.keyCode ? e.keyCode : e.which);
                         if (code == 13) { 
                                var xyz = $("#test").val();
                                xyz.length;
                             }
</code></pre>
