title: How do I add an input field after an element was created with javascript?
body: <p>I am trying to add an input field to a created element. This is my code. </p>
  
  <pre><code>var Images_to_beuploaded_cont = document.getElementById("Images_to_beuploaded_cont");
  
    var carCont = document.createElement('div');
    carCont.className += "multipleImageAdding";
  
    Images_to_beuploaded_cont.insertBefore(carCont, Images_to_beuploaded_cont.firstChild);
  </code></pre>
  
  <p>So, the code above adds the following </p>
  
  <pre><code>&lt;div id="multipleImageAdding"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>What I want to do is the code below. </p>
  
  <pre><code>&lt;div id="multipleImageAdding"&gt;
     &lt;input type="text" name="fname"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is this even possible? to add an element to another after it was created?</p>