In this standard example
http://jqueryui.com/demos/sortable/#connect-lists-through-tabs
<script>
$(function() {
$( "#sortable1, #sortable2" ).sortable().disableSelection();
var $tabs = $( "#tabs" ).tabs();
var $tab_items = $( "ul:first li", $tabs ).droppable({
accept: ".connectedSortable li",
hoverClass: "ui-state-hover",
drop: function( event, ui ) {
var $item = $( this );
var $list = $( $item.find( "a" ).attr( "href" ) )
.find( ".connectedSortable" );
ui.draggable.hide( "slow", function() {
$tabs.tabs( "select", $tab_items.index( $item ) );
$( this ).appendTo( $list ).show( "slow" );
});
}
});
});
</script>
When you adding to fist list how run receive method so I add to database and remove when you moving back
This depends on what your backend is coded in. For instance, if you are using php, you may want to use jQuery to make an AJAX call:
Then, if your PHP file, you put something like this:
Something like that. Hope it helps 🙂