5

I'm trying to setup a way to sort multiple items at the same time using jQuery UI's Sortable plugin. I have come up with a partial solution, where the checked items go with the drag, but I can't get them all to move positions. Here is what I have: http://jsbin.com/ecela

What do I need to add to ensure the items move to their new location and get removed when dragging starts.

Also, I'm wondering if there is a way to use selectable and sortable together. I'm guessing not because they both require you to click on the items to select and drag/sort them.

2
  • Have you tried github.com/shvetsgroup/jquery.multisortable Commented Aug 3, 2014 at 6:23
  • That's pretty much what I was looking for. It's a little weird that you can drag a main item in the middle of sub items. Put this as an answer so you can get some up votes :) Commented Aug 6, 2014 at 19:10

1 Answer 1

3

There's a jQuery plugin for that: multisortable.

They have a jsfiddle example there too. You select items with shift-click or command-click, then drag them around.

Seems like a good starting off point, at least!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.