开发者

JQuery Sortable Item Change Value when Dropped

I have two connectedSortable lists and when I move the items between each list, I want to change the prefix text of the item. Eg. If I move List 1: Item 1 to List 2, it would be rename List 2:开发者_运维技巧 Item 1 once it has been moved across to the new list.

Greatly appreciate any help on this one, cheers


Maybe something like this?

  $(".dest").sortable( {
        update : function(ev, ui) {
            var label = something;
            $(this).append("<b>" + label + " </b>");
        }
    });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜