Get the new id of the transfer item in Jquery Sortable
<p>I use two <code>ul</code> in sorting. I create sortable function that can transfer <code>li</code> in other <code>ul</code> so they can both exchange the item. My problem is I cannot get the exact id of the ul where li is transfer.</p>

<p><strong>Example Scenario:</strong></p>

<p>When I drag <code>Test 1</code> to second <code>ul (no2)</code>, it's transfer but the id I get are <code>1</code> (which is the original id of the ul where Test 1 from) then next is <code>2</code> (which is the id of the ul where the Test 1 is transfer). <strong>What I need is only the id of the ul where Test 1 is transfer, which is <code>2</code>. How to get the exact value?</strong></p>

<p>Here are my codes:</p>

<pre><code>&lt;ul class="connected list no1" id="1"&gt;
    &lt;li style="cursor:move;" id="trans_1"&gt;Test 1&lt;/li&gt;
    &lt;li style="cursor:move;" id="trans_2"&gt;Test 2&lt;/li&gt;
&lt;/ul&gt;

&lt;ul class="connected list no2" id="2"&gt;
    &lt;li style="cursor:move;" id="trans_3"&gt;Other 1&lt;/li&gt;
    &lt;li style="cursor:move;" id="trans_4"&gt;Other 2&lt;/li&gt;
&lt;/ul&gt;

&lt;script&gt;    
    $(function() {
        $('.connected').sortable({
            connectWith: '.connected',
            dropOnEmpty: true,
            update: function(){
                 //alert($(this).parents('ul').attr('id'));
                alert($(this).attr('id'));
            }
        });
   });
&lt;/script&gt;
</code></pre>

<p>Additional:</p>

<p>How to get the id of the transfer <code>li</code>?</p>

<p><strong>UPDATE:</strong></p>

<p>What I need is to get the <code>ul id</code> where <code>li</code> is transfer in vice-versa. What I said above is just a sample, it doen't mean that I only want <code>id=2</code>. What about if I transfer <code>Other 1</code> in other ul which id is <code>1</code>. Just like that in vice versa.</p>
