0

I have successfully managed to hack together (with the help of other posts), this example

here (code and live example)

which is a jQuery UI sortable and selectable comprised of three connected lists. There is also a restriction on it so that only one item may be selected at a time.

If you look at the demo you will see that selection is only possible across items of the same list. My question is how I can make selection go across multiple connected lists.

Any help is much appreciated.

user1170679
  • 75
  • 1
  • 10

1 Answers1

0

Try wrapping around your sortables with a div. For example: <div id="sortables">. Then change your selector from:

$("#list1, #list2, #list3").selectable

to:

$("#sortables").selectable

Then add this line as a selectable option:

filter: "li",

This way will make only the <li> elements selectable within the "sortables" div.

Unibyte
  • 93
  • 1
  • 9