I suspect I'm missing something obvious, but the following code always
seems to return the same (original) sequence when I move an item. Any
suggestions:
<!doctype html>
<html lang="en">
<head>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function() {
$("#pages").sortable(
{ items: $('.sortlist'),
update: function (event, ui) {
alert($("#pages").sortable('toArray'));
alert($("#pages").sortable
('serialize'));
}
});
$("#pages").disableSelection();
});
</script>
</head>
<body>
<div id="pages">
<div class='sortlist' id='page_49'> 49 </div>
<div class='sortlist' id='page_48'> 48 </div>
<div class='sortlist' id='page_47'> 47 </div>
<div class='sortlist' id='page_46'> 46 </div>
</div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---