I've got a jQuery UI sortable list that's connected with a draggable list. You can drag items out of the draggable list and drop them on the sortable list. This works great.
However, I want to intercept the drop and completely alter--replace, really--the list item that actually gets inserted into the sortable list. Looking at the "update" event for jQuery UI sortable, I see various ways to inspect the item that is being dropped, but I can't figure out how to say "don't insert the item that just got dropped--insert this item instead."
Is there a way to do that? If not, what is the "best practice" for handling this use case? I'm sure I'm not the first person to want to do something like this.