title: create button with JS - load data from array
body: <p>I have this code for creating button element in JS file:</p>
  
  <pre><code>  var numery = ['A','B','C'];
    var numer = document.createElement("button");
    numer.type = "button";
    numer.value =numery[i];
    numer.className = "class1 class2";
    numer.innerHTML = numery[i];
  </code></pre>
  
  <p>I do not know how to append it (one after another) in HTML, which looks like:</p>
  
  <pre><code>    &lt;div class="container_b pull-left" id="container_b"&gt;
      &lt;button type="button" class="btn_budynki" id="naglowek_budynkow_zwiniety"&gt;Header button&lt;/button&gt;
      &lt;div class="btn-group-vertical pull-left hide" role="group" id="grupa_bud"&gt;
        &lt;button type="button" class="btn_budynki_top btn_budynki" id="naglowek_budynkow"&gt;Another header&lt;/button&gt;
  &lt;button type="button" class="btn_strzalka btn_strzalka_gora border_top" id="strzalka_gora_bud"&gt;&lt;span class="glyphicon glyphicon-chevron-up"&gt;&lt;/span&gt;
  &lt;/button&gt;
        &lt;!-- i want to put created elements as buttons here--&gt;
        &lt;button type="button" class="btn_strzalka btn_strzalka_dol border_top"&gt;
          &lt;span class="glyphicon glyphicon-chevron-down"&gt;&lt;/span&gt;
        &lt;/button&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>If i use appendChild and id of element above: strzalka_gora_bud
  then it appends before end tag  of the element.
  Can please someone help me?</p>