jQuery UI Sortable - serialize multiple columns
- by oshirowanen
Dear stackoverflow experts,
I have a little script which allows me to use jQuery to sort div tags nicely between 3 columns. The jQuery can be seen below:
$(".column").sortable(
{ connectWith: '.column' },
{ update: function(event, ui) { alert($(this).sortable('serialize')) }
});
If I move an item from column 1 to column 2, it will display 2 alerts, showing the serialized data for the 2 affected columns. The problem is, I need to know the column ids too, so I can eventually save the data into a database. Right now, if it is possible to just display the column id in an alert but, that will be enough for me to continue.
Any help will be greatly appreciated.
Thanks