title: Carriage returns for textbox (textarea)
body: <p>I have a textarea with attribute "wrap"="hard" (actually it's server side textbox, but with multiple text mode).</p>
  
  <pre><code>&lt;asp:TextBox TextMode=MultiLine runat=server ID=txt Width=50 Height=50 class=txtclass /&gt;
  
  &lt;asp:Button runat=server ID=btnServer OnClick=btn_Click Width=80 Text="Click server" /&gt;
  
  &lt;input type="button" value="Click client" onclick="clientclick();" id="btnClient" style="width: 80px;" /&gt;
  
     protected void Page_Load(object sender, EventArgs e)
      {
          txt.Attributes.Add("wrap", "hard");
      }
  </code></pre>
  
  <p>I enter a text that is wider than the textarea. When I click on client side button the text in alert is without carriage returns (like "111111111").</p>
  
  <pre><code>&lt;script src="jquery-1.5.2.min.js" type="text/javascript"&gt;&lt;/script&gt; 
  
  &lt;script type="text/javascript"&gt;    
  
  function clientclick() {
          alert($('.txtclass').val());          
      }
  </code></pre>
  
  <p></p>
  
  <p>When I click on server button while debugging I see that the text has carriage returns (like "11111\r\n1111").</p>
  
  <pre><code>protected void btn_Click(object sender, EventArgs args)
      {
          var test = txt.Text;
      }
  </code></pre>
  
  <p>The question is  how can I get a text with carriage returns on the client side?</p>