I have two connected tbody elements allowing me to drag rows between two tables. Everything works fine until all rows are removed from either table.
When all rows have
js
$(".sortable").sortable({
items: 'tbody > tr',
connectWith: ".sortable"
});
css
.sortable {
background-color: silver;
height: 10px;
}
.sortable td { background-color: white; }
html
More details and even a better code at https://devstuffs.wordpress.com/2015/07/31/jquery-ui-sortable-with-connected-tables-and-empty-rows/