Yes, but additionally, the IDs need to have an underscore separator, for some reason.
item_1 a_1 car_2 etc. There needs to be an underscore between the first alpha character and the number. On Nov 26, 3:12 pm, ajpiano <[EMAIL PROTECTED]> wrote: > the ID attribute is not allowed to start with a number. > > --adam > > On Nov 26, 5:09 pm, René <[EMAIL PROTECTED]> wrote: > > > 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>