title: Children loop html append into parent loop inserted div by javascript
body: <p>The loop working but don't getting class as a selector from parent loop generated div...</p>
  
  <pre><code>var parentdiv = $(".pDiv");
  for (i = 0; i &lt; 3; i++) {
      $(parentdiv).append("&lt;label class="
          addLabel "&gt;" + i + "&lt;/label&gt;"); // parent loop add
      for (j = 0; j &lt; 3; j++) {
          $(".addLabel").append("&lt;label class="
              addLabel2 "&gt;" + j + "&lt;/label&gt;"); //children loop in parent class
      }
  }
  </code></pre>