I'm interested in best way to achieve dragging multiple selected elements using (JQuery (Ui)).
At the moment I'm using this piece of code
// Make all divs inside draggableArea draggable
$("#dragableArea div").draggable({
start : function() {
}
drag : function() {
// Calculate position of other selected elements here
// by hand
}
stop : function() {
}
});
I'm curious to know if there is some better way to achieve the same thing? I would like to trigger the drag event on all selected items, so that they automatically move when any of them is dragged. Is it possible and if yes how (at least in theory)?