I just want to set up a link that allows the user to list this sorted list item at the top of the list. I need something like
$('.sortable li:last-child').move('.sortable li:first-child');
... where I can simply call the link to place any element of the list at the top of the list.
Nothing! I have found the answer. $ (id) .prependTo ($ ('# list'));
jquery jquery-ui jquery-ui-sortable
Giles bowkett
source share