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 ?
Here is my code.
data.keyup('#id',function(e)
{
code= (e.keyCode ? e.keyCode : e.which);
if (code == 13) {
var xyz = $("#test").val();
xyz.length;
}