jquery ui - Move items from one sortable connected list to the other programmatically -


i have 2 sortable connected lists #left , #right. want move elements #left #right when clicking button.

$('#left li').each(function() {     var $this = $(this);     $this.appendto('#right'); }); 

above function moves items receive function not triggered.

a jsfiddle of current state.

found way trigger receive event manually

$('#left li').each(function() {     var $this = $(this);     $this.appendto('#right');      // trigger     $('#right').sortable('option', 'receive')(null, { item: $this }); }); 

new jsfiddle


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -