title: TextArea value not showing any new lines breaks
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8481025/the-val-of-a-textarea-doesnt-take-new-lines-into-account">The .val() of a textarea doesn&#39;t take new lines into account</a>  </p>
  </blockquote>
  
  
  
  <p>I have a text area when i type a message in the text area with newlines and get the value back from the text area the newlines are not preserved and the text is written as one line. how do i get the newlines from the text area?I am using IE 9 and Mozilla, Opera, Safari           </p>
  
  <pre><code>var message = $(".chatpaneltext textarea").attr("value");
  </code></pre>