JQuery Sortable Item Change value on dropout

I have two lists of connected lists, and when I move items between each list, I want to change the prefix text of the item. For example. If you move list 1: item 1 to list 2, it will be renamed to List 2: Item 1 as soon as it is moved to the new list.

Feel any help on this, welcome

+2


source to share


1 answer


Maybe something like this?



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

      

0


source







All Articles