Using jquery nestable how do i get serialized values for asynchronous

I am using Nestable. Its awesome but it will not serialize content that has been added asynchronously.

https://github.com/RamonSmit/Nestable/

I've tried

$('selector').nestable();
$('selector').nestable('reset');
$('selector').nestable('refresh');
$('selector').nestable('reload');

etc but the id's that appear in my json are blanks.

Answers


It looks like this :

$('selector').nestable('serialize')

Or this

$('selector').nestable('serialise')

Does the job for me


Need Your Help

For in loop not working with global namespace variable

javascript ajax asynchronous canvas for-in-loop

I'm working on a canvas animation/game and I am having problems with a for in loop in one of my functions. In the interest space I removed some code.

Spring WebFlow2.. action-state?

java spring spring-webflow

I am using Spring WebFlow2 and I would like to use a action-state to call my controller and check some server side code and then do something base on the return code..