This is my code:
$(".img-line").sortable({
update:function(){
var order = $('.img-line').sortable('serialize');
$.ajax({
type: 'POST',
data: order,
url: '/ajax/imageSort.php'
});
return false;
}
});
And in my imageSort.php when I try to get the data, looking for it in $_GET or $_POST, they are all empty. How do I get the data the sortable() sends?
You LI should have id.
The the jqueryui documentation. It is explain