Moving multiple list items at once

I have two lists related to jQuery UI sortablethat allow me to drag items from one list to another.

http://jsbin.com/uraga3

Is there an easy way to drag multiple items at once? to move items # 3, # 4 and # 7 from left to right?

+1
source share
1 answer

Not in the plugin.

You can write some custom code to add elements to the selection, and then move it several times.

how

$( "li" ).bind( "click", function() {
  $(this).toggleClass('sorting-selected');
});

$( "ul" ).bind( "sortreceive", function(event, ui) {
  $('li.sorting-selected').appendTo($(this));
});
+1
source

All Articles