title: Split textarea into different textboxes with javascript
body: <p>I'm quite inexperienced with JavaScript, but need a solution for a fairly simple problem.</p>
  
  <p>I would like to be able to enter information in an html textarea, press button and split the contents of the textarea into different textboxes. Maybe visualizing it will make it more clear:</p>
  
  <p>So i would like to go from this:</p>
  
  <pre><code>&lt;textarea&gt;
  Line 1
  Line 2
  Line 3
  &lt;textarea&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;input type="text" value="Line 1" /&gt;
  &lt;input type="text" value="Line 2" /&gt;
  &lt;input type="text" value="Line 3" /&gt;
  </code></pre>
  
  <p>Thanks!</p>