list - jquery sortable adding element -
i using jquery sortable drag , drop elements 1 list another. move elements 1 list another. looking functionality adds element second list when drag first list. after dragging element should in both list. suggestions ?
like in fiddle, set helper 'clone'.
js
$('.dragme div').draggable({ axis: 'y', helper: 'clone', opacity: '0.5' }); $('.dropme').droppable({ accept: '.dragme div', drop: function(event, ui) { $(this).append($(ui.draggable).clone()); } });
Comments
Post a Comment