1

I use the toArray function to get the list using this line of code.

var sortedPage = $('ol.sortable').nestedSortable('toArray');

How can I reconstruct the list using this array?

Oddadmix
  • 180
  • 2
  • 11
  • What are you trying to do? It's not clear... – EmptyArsenal Dec 28 '13 at 02:11
  • i used the above code to get the list into an array how to reverse the operation by using this array to build the nested sortable using this array !!! – Oddadmix Dec 28 '13 at 02:32
  • Is this the same thing you are asking? [how-to-generate-ul-li-list-from-string-array-using-jquery](http://stackoverflow.com/questions/5881033/how-to-generate-ul-li-list-from-string-array-using-jquery) – Joe Dec 28 '13 at 02:43
  • @joe thanks but not it's not the same thing this one is for the sorted not the nestedsortable – Oddadmix Dec 28 '13 at 02:52
  • have you solved the question @Oddadmix? – ElTête Jan 08 '16 at 11:42
  • Adding some context... the above question refers to a plugin that serializes a nested HTML list (typically an OL/UL). However, the author of the plugin has not implemented a method to deserialize and rebuild the nested list. Here's the plugin: https://github.com/ilikenwf/nestedSortable/blob/master/README.md – Andres Jan 01 '17 at 08:28

0 Answers0