Re: changing values when sorting

frank
2006-09-29T05:35:07Z

The only way that I''ve been able to get the IDs is like so:

onChange: function(){

var text = Sortable.serialize("list");
var first_id = (text.substr(8,4));
var second_id = (text.substr(21,4));

}

In this case the lengths of the IDs is 4 digits. The problem with the
above is that you can''t get the ID of the item that was added to the
list the most recently. I''m sure there''s a better way...