title: create nested divs with jquery
body: <p>I have to dinamically create nested divs using jquery .append()</p>
  
  <p>But by this code:`</p>
  
  <pre><code>html=$("&lt;div class='table'&gt;")
      .append($("&lt;div class='row'&gt;"))
      .append($("&lt;label&gt;Denominazione Gruppo&lt;/label&gt;"))
      .append($("&lt;input type='text' id='denominazione'&gt;"));
  $("#content").empty();
  $("#content").append(html);`
  </code></pre>
  
  <p>i get this wrong output</p>
  
  <pre><code>&lt;div id="content"&gt;
      &lt;div class="table"&gt;
          &lt;div class="row"&gt;&lt;/div&gt;    //this closed tag should not be here!
          &lt;label&gt;Denominazione Gruppo&lt;/label&gt;
          &lt;input type="text" id="denominazione"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Where i wrong?
  Thank you.</p>