I'm stuck! I have followed the examples there is, but I can't make
this work. My code below just generates an empty alert box:

<script>
  $(document).ready(function(){
    $("#myList").sortable({
                update : function(e, ui)
                {
                        serialize("#myList");
                }
        });
  });

function serialize(s)
{
        serial = jQuery.SortSerialize(s);
        alert(serial.hash);
};
  </script>
  <style>ul { list-style: none; }
li { background: #727EA3; color: #FFF; width: 100px; margin: 5px; font-
size: 10px; font-family: Arial; padding: 3px; }</style>
</head>
<body>

<ul id="myList">
            <li id="11">Item 1</li>
            <li id="23">Item 2</li>
            <li id="33">Item 3</li>
            <li id="44">Item 4</li>
</ul>

Reply via email to