title: Showing multiple lines textarea value in an div elemtent using js
body: <p>I have a text area, a button and a div</p>
  
  <pre><code>&lt;textarea type="text" id="mytext"&gt;&lt;/textarea&gt;
  &lt;button onclick="test()"&gt;Click Me&lt;/button&gt;
  &lt;div id="here"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Here is the script</p>
  
  <pre><code>&lt;script&gt;
      function test() {
          var b = document.getElementById('mytext').value;
          document.getElementById('here').innerHTML = b;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I wrote following text in text area:</p>
  
  <pre><code>Hello All
  Good Morning
  </code></pre>
  
  <p>But when i pressed Click Me, it gives following text in div element:</p>
  
  <pre><code>Hello All Good Morning
  </code></pre>
  
  <p>How to show multiple lines as in textarea?
  Thanks</p>