title: javascript setting textarea value with new line
body: <p>i am new to php, javascript and web</p>
  
  <p>I am having a situation => I have to set a value of text field on my client side, i pass value to my javascript function and it sets value as</p>
  
  <pre><code> function editSubService(description){
        setVal("sub_service_description", description);
   } 
  </code></pre>
  
  <p>and it sets the value right , but if there is new line in the text, it does not set the text field. how can this set that value of text field, its only not working if new line</p>