Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a way to get individual items in a sortable connected list with jquery ui after item was removed from list?
    primarykey
    data
    text
    <p>I Have the following problem: After an item was being dragged out from the "sortable_pics_selected" list into the other list there is an event being fired with jquery ui "remove" event handler:</p> <p>-->fiddle: <a href="http://jsfiddle.net/4DBLj/3/" rel="nofollow">http://jsfiddle.net/4DBLj/3/</a> &lt;---</p> <pre><code> $("#sortable_pics_selected").sortable({ remove: function(event, ui) { alert('hi); } }); &lt;div id="sortablecontainer_pic"&gt; &lt;ul id="sortable_pics_all" class="connectedSortable"&gt; &lt;li class="ui-state-default"&gt;Item 1&lt;/li&gt; &lt;li class="ui-state-default"&gt;Item 2&lt;/li&gt; &lt;li class="ui-state-default"&gt;Item 3&lt;/li&gt; &lt;li class="ui-state-default"&gt;Item 4&lt;/li&gt; &lt;li class="ui-state-default"&gt;Item 5&lt;/li&gt; &lt;/ul&gt; &lt;ul id="sortable_pics_selected" class="connectedSortable"&gt; &lt;li id="1" class="ui-state-highlight"&gt;Item 1&lt;/li&gt; &lt;li id="2" class="ui-state-highlight"&gt;Item 2&lt;/li&gt; &lt;li id="3" class="ui-state-highlight"&gt;Item 3&lt;/li&gt; &lt;li id="4" class="ui-state-highlight"&gt;Item 4&lt;/li&gt; &lt;li id="5" class="ui-state-highlight"&gt;Item 5&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Is there a way to figure out which id the removed item has? The above function just fires in general when any item was removed...what might be the best way to get the individual id? Is there a jquery ui function that can do this? If this is not the case...the remove method seems to me not being the right thing. I could write it in pure jquery but for this things jquery ui was build? Did i misunderstand something? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload