Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("ul#dest").sortable({items: "li:not(.placeholder)",
- placeholder: "my_item",
- start: function(e, u) {
- // Get ID of dragged item.
- },
- update: function (e, u) {
- // Stick the item in model, synchronize with server
- },
- sort: function(e, u) {
- $( this ).removeClass( "ui-state-default" );
- }
- }).disableSelection();
- $("ul#src li").draggable({appendTo: "body",
- helper: "clone",
- connectToSortable: "ul#dest",
- start: function (e, u) {
- // Get ID of dragged item
- }
- });
Add Comment
Please, Sign In to add comment