ul sortables get serialized data
- by russp
Hi folks
Any ideas how to get the serilized data from this function? the html is first with the JQuery function last, I cannot get the serialization to appear in the alert. When I can do that I can finish this by sending via ajax etc...
<div class="column" id="col1">
<div class="portlet">
<div class="portlet-header">Feeds</div>
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
</div>
<div class="portlet">
<div class="portlet-header">News</div>
<div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
</div>
Shopping
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
Links
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
Images
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
$(function() {
$("#col1, #col2, #col3").sortable({
connectWith: '.column',
receive : function () {
serial = $('#col1').sortable('serialize');
//serial2 = $('#col2').sortable('serialize');
//serial3 = $('#col3').sortable('serialize');
alert(serial);
}
});
});