I'm using http://johnny.github.io/jquery-sortable/ not Jquery UI sortable.
My full code is here: http://jsfiddle.net/shankardevy/XwkxH/2/
jQuery('.draggable').sortable({
onDrop: function (item, container, _super) {
console.log($('.draggable').sortable("serialize").get());
_super(item, container)
}
})
My problem is that in the above code, sortable('serialize') as documented in http://johnny.github.io/jquery-sortable/ is not working for me. It gives me an array of empty objects while I expect the array to contain the <li> objects in the order sorted.
<li>element. The objects are not of<li>. maybe I'm missing something obvious. I need to get the ids of each of the object in that array.