I have a list with items and want to update the item's order based on an "array" (it proved to be an object, not an array) with ids in the updated order.
It's "new_order" here:
$.post('/fetch/get_list', function(new_order)
{
// How should I handle new_order here?
}
How do I change the current list order to the "new_order"?
One idea would be to retrieve the entire list of HTML and all created with php. But I can't do like that in this case. The HTML that the current list consists of must be retained.
So, I just want to update the order of the items in the current printed list.
Hope you understand how I mean. :)