title: How To add Draggable Event with Containment for Appended Div and Appended Containment
body: <p>How To use jQuery draggable event for append div, I also want to define containment which was also appended ..
  I tried may Solutions but none is working ,Please can anybody tell me that how to do this??</p>
  
  <p>my code is like this.</p>
  
  <pre><code>&lt;button class="mybutton"&gt;push me&lt;/button&gt;
  &lt;div class="content"&gt;&lt;/div&gt;
  
  $(".mybutton").click(function(){
      $("&lt;div&gt;drag me&lt;/div&gt;").appendTo(".content").draggable();
      $("&lt;div class='containment' style='border: 1px solid blue;display: block; height: 600px; width: 500px;'&gt;&lt;/div&gt;").appendTo(".content")  
  });
  </code></pre>
  
  <p>now I don't want to drag drag me div outside the containment div. is there any way to do so</p>