title: Append partial html code jquery
body: <p>I am building an html page and I need to add html code from one div to another dinamically.</p>
  
  <p>This is my first div:</p>
  
  <pre><code>&lt;div id="placeHolder" style="display:none"&gt;
      &lt;div id="1"&gt;....&lt;/div&gt;
      &lt;div id="2"&gt;....&lt;/div&gt;  
      &lt;div id="3"&gt;....&lt;/div&gt;      
  &lt;/div&gt;
  </code></pre>
  
  <p>And I want to add the divs with the id 1, 2 and 3 to another div(#mainDiv) but not all at once. </p>
  
  <p>Is there a way to add partial html code with jquery ? I know theres a function called append but what I dont know if it is suitable for this type of ocasion..</p>
  
  <p>Thanks</p>