jQuery UI可排序-将更改保存到服务器
我正在使用它,它在浏览器上运行得非常好 现在我想将它保存到服务器,我知道如何序列化,但我不想更新所有内容 在服务器上,我只想知道移动到哪里的内容。jQuery UI可排序-将更改保存到服务器,jquery,jquery-ui,jquery-ui-sortable,Jquery,Jquery Ui,Jquery Ui Sortable,我正在使用它,它在浏览器上运行得非常好 现在我想将它保存到服务器,我知道如何序列化,但我不想更新所有内容 在服务器上,我只想知道移动到哪里的内容。 是否有可能在stop事件中找到这一点?怎么做 提前感谢。一种解决方案是将停止功能设置为: stop: function(e,ui) { var allItems = $(this).sortable("toArray"); var newSortValue = allItems.indexOf( $(ui.item).attr("i
是否有可能在
stop
事件中找到这一点?怎么做
提前感谢。一种解决方案是将
停止功能设置为:
stop: function(e,ui) {
var allItems = $(this).sortable("toArray");
var newSortValue = allItems.indexOf( $(ui.item).attr("id") );
alert($(ui.item).attr("id") + " was moved to index " + newSortValue);
}