title: Replace all "\n" with ","
body: <p>I have a textarea and I want to replace "\n" with "," in it's value.</p>
  
  <pre><code>var valuetxtarr = $("#txtarr").val();
  var valuetxtarrs = valuetxtarr.replace("/\n/g",",");
  alert(valuetxtarrs);
  </code></pre>
  
  <p>But it don't work?Why?Where I have mistake?</p>