3

Example:

https://codepen.io/upgrayedd/pen/OXwAXO

( I copy it ) My project is same that example.

Problem is I need change data-id ( or data-name, data-slug, data-* ... )

But I don't know how to output.

Output:

[{"id":3},{"id":4},{"id":1},{"id":2}] ( In that example )

My output need:

[{"id":10},{"id":4},{"id":1},{"id":2}]

( id = 10 changed from my edit );

I try

$('#nestable2').nestable('serialize');

But it keeps old Output

[{"id":3},{"id":4},{"id":1},{"id":2}]

AND SORRY FOR A POOR ENGLISH. THANK A LOT.

4

0 回答 0