I am working on a drag and drop layout tool for some customized PDF generation and I would like to be able to serialize my Div’s after they have been dragged and dropped using jQuery UI.
I have all of the code working except the serializing of the CSS of the elements – does anyone know of a plugin to do this before I write one?
Assuming you have html for sortable elements similar to this:
To serialize the sorted list, you need to first make the list sortable, and then call the serialize method on it:
To get the order on the server side (assuming you’re using PHP), you can send
items_orderas as a POST variable, and parse it: