Answer the question
In order to leave comments, you need to log in
How to process JSON generated by js-sortable?
Sorting blocks with the js-sortable plugin. After dragging, an array of the type is formed.
Now, as I guess, it needs to be processed somehow, each ID needs to be assigned something like a weight. And pass to the handler somehow so probably["Степан", "Оля", "Владимир", "Алина"]
$.get('saveSortable.php', {тут наверно будет обработанный json - как написать не знаю} );
But how is this done correctly, how to process and transfer this array for writing to the weight base according to the ID of each block?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question