title: Append a Parent to a Child Element using Jquery
body: <p>I need Help for append a Child element to a parent Element. This is my code.I need to put the $input inside the $temp.</p>
  
  <p>Thanks</p>
  
  <pre><code>function CaixaPin(){
  
    var $temp;
    $temp = $("&lt;div&gt;&lt;/div&gt;");
    $temp.addClass("caixa");
  
    var $input;
    for(var i=0; i&lt;4; i++){
      $input = $("&lt;div&gt;&lt;/div&gt;");
      $input.addClass("caixaPin");
      $("body").append($input);
    }
  
  
    $("body").append($temp);
  
  }
  
  CaixaPin();
  </code></pre>