jQuery UI - sortable lists

jQuery UI - sortable lists

Hi!

I have two sortable lists connected to each other using:

$("#listOne").sortable({
   connectWith: ["#listTwo"]
});
$("#listTwo").sortable({
   connectWith: ["#listOne"]
});



This works great and I am able to sort items in each list and drag items from one list to the other.

Now the problem:

I am populating the first list so that the user can drag and drop selections from it to the second list. This works fine.

What I am looking for is a way to select ALL items in the first list and magically move them all into the second list. Essentially a "select all" function.

Can anybody help me?


Sonia