title: Convert input text to list
body: <p>I'm looking to convert a string of content into a list separated by &quot;,&quot;.
  The content should be inserted in a textbox by the user.</p>
  <p>This is my html:</p>
  <pre><code>&lt;textarea id=&quot;csv_text&quot; onkeyup=&quot;&quot;&gt;&lt;/textarea&gt; 
                          &lt;input onclick=&quot;convert_to_list()&quot; value=&quot;Konvertera&quot; type=&quot;button&quot;/&gt;
                      &lt;/fieldset&gt;                 
                  &lt;/form&gt; 
                  &lt;div id=&quot;converted_list&quot;&gt;
  </code></pre>
  <p>And this is the Javascript that I try to make work, but I can't get my head around it:</p>
  <pre><code>function convert_to_list() {
      var inputText= document.getElementById(&quot;csv_text&quot;).value;
      var inputText = input.split(&quot;,&quot;);
      document.getElementById(&quot;converted_list&quot;).innerHTML;
  }
  </code></pre>
  <p>What am I doing wrong!?</p>