Ver originalvar enlaces = $(".box a");var cajas = $('#append .box'); $.each(enlaces, function(i){ $(enlaces[i]).appendTo(cajas[i]);});