Jquery UI Sortable - Get the item being sorted

后端 未结 1 787
时光说笑
时光说笑 2021-01-03 21:34

When using Jquery UI Sortable (which is great by the way) how do you get the item that is currently being sorted.

When you use $(this); it return the ac

相关标签:
1条回答
  • 2021-01-03 22:25

    As far as I'm aware ui in your start: function(event, ui) is the current element being sorted.

    As pointed out in the comments ui.item is the current element.

    0 讨论(0)
提交回复
热议问题