Jquery UI Sortable - Get the item being sorted -


When Jquery UI uses Sortable (how great is the way) How do you get that item Currently sorting. / P>

When you $ (this); , then they return the actual sorted list, not the current sorted items.

I want to do fancy-pants things when the user is pulling it around, like animate it while dragging between two lists.

So how do I solve the current item?

There is a small code below to explain a bit more ...

  $ (function () {$ ("# sortable_1"). Sortable ({start: Function (Event, UI) {// Current Alright is being sorted}, Stop: Function (Event, UI) {// Subscribing to}.) DisableSelection ();});  

As far as I know ui Code> Start: Function (Event, UI) Current element is being solved.

As mentioned in the comments, ui.item is the current element.


Comments