title: Javascript add linebreak, \n not working
body: <p>I want to add a linebreak in Javascript, but \n is not working and nothing else I found so far is not working (like <code>&lt;br&gt;</code> or <code>\n</code>). Also, because of the programming I cannot use .appendChild.</p>
  
  <pre><code>for (i=getchilds();i&lt;number;i++){
       container.appendChild(document.createTextNode("\n" + "Pers. " + (i+1) + " \u00a0"));
       var input = document.createElement("input");
       input.type = "number";
       container.appendChild(input);
  }
  </code></pre>