OK, I figured out my problem.

The <li> items need to have an ID in the form of "item_1".

On Nov 26, 2:07 pm, René <[EMAIL PROTECTED]> wrote:
> Can someone tell me why serialize returns nothing?
>
> <ul id="sort">
> <li id="1">123</li>
> <li id="2">abc </li>
> <li id="3">456</li>
> <li id="4">xyz</li>
> </ul>
>
> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/
> libs/jquery/1.2.6/jquery.min.js"></script>
> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/
> libs/jqueryui/1.5.2/jquery-ui.js"></script>
>
> <script type="text/javascript">
>
> $('#sort').sortable({
>     cursor:     'move',
>     axis:       'y',
>     update: function() {
>         sorted = $(this).sortable("serialize", 'id');
>         alert (sorted);
>     }
>
> });
>
> </script>

Reply via email to