Hi Robert, Sorry for the delayed reply but your post gave me a good starting point - this is how I did it in the end:
$(document).ready(function() { $("#pagelist").Sortable({ accept: "dragtag", axis: "vertically", onchange: function() { theIds = ""; $("#pagelist li").each(function() { theIds += $(this).attr("id").replace("page","") + ","; }); alert(theIds); } }); }); Thanks! On 7 Jun, 16:54, Robert O'Rourke <[EMAIL PROTECTED]> wrote: > Michael Price wrote: > > > Hi, > > Say I've got this list: > > > <ul id="sortable"> > > <li id="element1">stuff</li> > > <li id="element2">stuff</li> > > <li id="element3">stuff</li> > > </ul> > > > UsingInterfacesortables I want to get a comma separated list of list > > item IDs after I've done some dragging. Say I've been doing some > > dragging and it's now: > > > <ul id="sortable"> > > <li id="element3">stuff</li> > > <li id="element1">stuff</li> > > <li id="element2">stuff</li> > > </ul> > > > I can use SortSerialize but this gives me the POST-ready version. I > > just need "element3,element1,element2". > > > What is the best way to achieve this? > > > Regards, > > Michael Price > > var listIds = $("#sortableli").attr("id"); > listIds.join(","); > > Is how I'd do it. Whether it'll work or not I don't know...