Skip to content

Instantly share code, notes, and snippets.

@janv
Created September 4, 2013 08:24
Show Gist options
  • Save janv/6434236 to your computer and use it in GitHub Desktop.
Save janv/6434236 to your computer and use it in GitHub Desktop.
Trigger jQuery-UI sortable
(function () {
var widget = $('.ui-sortable').data("ui-sortable");
widget._trigger("start", null, widget._uiHash(widget));
$('.ui-sortable tr:first-child').appendTo('.ui-sortable');
widget._trigger("update", null, widget._uiHash(widget));
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment