Javascript capture key
<p>I am trying to catpure the enter key from a textarea using javascript. The problem is that although I am able to find out that the "enter" key was pressed, I am not unable to avoid it from coming in the textarea. I dont want the enter key i.e. "\n" to be displayed in the text area.</p>

<p>Any suggestions on how to achieve that?</p>

<p>Thank you.</p>
