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>");
}
});
精彩评论