Grow your CSS skills. Land your dream job.

jQuery Save/Load Sortable List

  • # October 8, 2012 at 6:54 pm

    I have a list of divs (with forms inside the divs) where they can be dragged and dropped where you want them. Of course, saving that order would make sense.

    I’ve been using the following [tutorial](http://devheart.org/articles/jquery-customizable-layout-using-drag-and-drop/ “tutorial”) as an example where I understand how to grab the id of each list item and store it in an array by column.

    However, in their example, it’s a simple list item. I have divs with forms in each list item. Is the correct method to store the html of the list item as well?

    I was thinking of using AJAX but that wouldn’t be an option since this will be used locally.

    # December 20, 2012 at 8:02 pm

    Anyone have suggestions on this? Still haven’t figured out how to proceed?

    I understand how to save the order in an array, but not sure how to load the saved order and still keep the content within the items in tact?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".