title: jQueryUI Sortable and connectWith - how to recognize list from which item comes?
body: <p>I don't know how to recognize sortable from which item comes. It is two sortables and one draggable. Two sortables are connected to each other and draggable could be dragged into the lists. I need to recognize from which list item comes.
  <a href="http://jsfiddle.net/qAS93/" rel="nofollow noreferrer">http://jsfiddle.net/qAS93/</a></p>
  <pre><code>&lt;ul&gt;
      &lt;li id=&quot;draggable&quot; class=&quot;ui-state-highlight&quot;&gt;Drag me down&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul class=&quot;sortable&quot;&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 1&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 2&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 3&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 4&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 5&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul class=&quot;sortable&quot;&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 1&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 2&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 3&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 4&lt;/li&gt;
      &lt;li class=&quot;ui-state-default&quot;&gt;Item 5&lt;/li&gt;
  &lt;/ul&gt;
  
  $(&quot;.sortable&quot;).sortable({
      connectWith: &quot;.sortable&quot;,
      revert: true,
      receive: function(){
          $('#text').text('I don't know from which list item comes');
      }
  });
  
  $(&quot;#draggable&quot;).draggable({
      connectToSortable: &quot;.sortable&quot;,
      helper: &quot;clone&quot;,
      revert: &quot;invalid&quot;
  });
  </code></pre>