title: New line in paragraph when Enter is pressed in textarea
body: <pre><code>document.getElementById('area').onkeyup=keydown;
  function keydown (event) {
  if (event.target.id=='area' &amp;&amp; event.which==13) {
  document.getElementById('arsh').innerHTML+="\n";
       }
  }
  </code></pre>
  
  <p>Arsh is the ID of my paragraph where i want to add the new line why is this not working can anyone help me ?I just want to add a new line when Enter is pressed in the textarea (ID area) to my Paragraph (ID arsh).</p>
  
  <p>here is the HTML </p>
  
  <pre><code>&lt;textarea ID="area" class="in"&gt;
  Message
  &lt;/textarea&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;p ID="tiesh" class="sh"&gt;
  &lt;/p&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;p ID="arsh" class="sh"&gt;
  &lt;/p&gt;
  &lt;br /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am basically trying to do it like here in stackoverflow when you press enter in the textarea down the paragraph jumps down a line also.</p>
  
  <p><img src="https://i.stack.imgur.com/YoOu0.gif" alt="enter image description here"></p>