var nestedSortables = [].slice.call(document.querySelectorAll('.nested-sortable')); for (var i = 0; i < nestedSortables.length; i++) { new Sortable(nestedSortables[i], { group: 'nested', animation: 150 }); }