treehouse : what would you like to learn today?
Web Design Web Development iOS Development

jQuery Save/Load Sortable List

  • 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 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.

  • 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?