I have a list of elements that can be dropped into a list of (existing) sortables. When a droppable element is dropped into the sortables, I want to modify the element. I do
perhaps this can help :
See this fiddle for code, I change it:
http://jsfiddle.net/penjepitkertasku/CxpMn/34/
$('#sortable').sortable();
$('#sortable').droppable({
drop: function(ev, ui){
$(ui.draggable).html('' + ui.draggable.text() + '');
}
});
$('#draggables li').draggable({
connectToSortable: '#sortable',
helper: 'clone',
revert: 'invalid',
cursor: 'move'
});