jQuery Sortable - events being called too many times

前端 未结 1 402
名媛妹妹
名媛妹妹 2021-01-22 20:52

I have a list with class x and in that list is a number of lists with class y.

It is possible to drag an item from any of the sublists to any of the other sublists

相关标签:
1条回答
  • 2021-01-22 21:39

    You should use the stop event for updating the ordered list.

    For example:

            $("#List .Items").sortable({
                stop: function(e, ui) { 
                    // update items
                }
            });
    
    0 讨论(0)
提交回复
热议问题