title: How can I use `appendChild` to add unlimited File Upload fields?
body: <p>Im a little new to JavaScript.</p>
  
  <p>I am going to have a file upload field. I want to add an <code>onclick</code> to the file upload field to add additional file upload fields. </p>
  
  <p>So I'm thinking something like:</p>
  
  <pre><code>i=0
  function addfile() { 
  document.getElementById("form_name").appendChild(&lt;input type=\"file\" name=\"file1\"" +     "i++" + " /&gt;)}
  </code></pre>
  
  <p>...then... </p>
  
  <pre><code>&lt;input type="file" onclick="addfile();" /&gt;
  </code></pre>
  
  <p>(I know this syntax is probably terrible/missing things, I'm just trying to layout the concept I think I am supposed to be using.)</p>
  
  <p>Can you get this working?</p>