JQuery UI Sortable to generate a live preview
Hi everybody - hope some you can help me out here :)
I'm trying to archive the following:
I have a list of items that I can order with .sortable().
I would then like to make the sorting order get reflected (without having to reload the page) in a preview area.
I've gathered and array of the new sorting order, but I can't find a clever way to do this.
My plan is to also have different events attached to the div elements which I'm afraid will get lost if I just store the jQuery objects in an array and output them..
I've been looking at the .clone function and also thought of if the .map function would do me any good but I can't seem to find a solution I can make any sense of.
Have a nice day,
Magnus