title: jQuery UI sortable divs across multiple containers or parents
body: <p>I have a list of objects that is split into two containers that I want to make sortable via jQuery but I cannot figure out how to make one object able to be added to the other containers list and vice versa.  So, I want to be able to drag an object from one container into the other and have the code treat it as if it were one list.</p>
  
  <p>Here is my code below: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;
  &lt;title&gt;Untitled 1&lt;/title&gt;
  &lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jquery-ui/js/jquery-ui-1.8.22.custom.min.js"&lt;/script&gt;
  &lt;link type="text/css" href="jquery-ui/css/smoothness/jquery-ui-1.8.22.custom.css" rel="stylesheet" /&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  $("#nowplaying_list, #nowplaying_history").sortable().disableSelection();
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="left_content" class="ui-droppable"&gt;
  &lt;div id="nowplaying_container" style="display:block;"&gt;
      &lt;div id="nowplaying_wrapper"&gt;
          &lt;div id="nowplaying_history" class="ui-sortable"&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 1&lt;/div&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 2&lt;/div&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 3&lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="nowplaying_list" class="ui-sortable"&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 4&lt;/div&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 5&lt;/div&gt;
              &lt;div class="object_container ui-draggable" &gt;OBJECT 6&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>