开发者

JQuery Sortable Item Change Value when Dropped

开发者 https://www.devze.com 2022-12-09 00:33 出处:网络
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:开发者_运

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

精彩评论

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