jQuery UI Sortable - serialize multiple columns

Posted by oshirowanen on Stack Overflow See other posts from Stack Overflow or by oshirowanen
Published on 2010-06-10T15:47:16Z Indexed on 2010/06/11 7:52 UTC
Read the original article Hit count: 684

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

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui