
Chciałbym by przeniesione wiersze na lewą stronę nie powielały się o tyle o ile dla jednej lini udało mi się to osiągnąć to gdy dodałem listę stało sie to niemożliwe

WYCINEK KODU (PROBLEM)
$(function() { // $('#acordeon').accordion(); $('#acordeon div > ul > li').draggable({ helper: 'clone', appendTo: 'body' }); $('#cart').find('ol').droppable({ activeClass: 'ui-state-default', hoverClass: 'ui-state-hover', drop: function(event, ui) { var string = ui.draggable.html(); if (!$('ol li:contains("' + string + '")').length) { // -------------------------------------------- PROBLEM ------------------!!!! :( $(this).find('.aqui').remove(); $(this).append('<li><a href="#" class="eliminar">Remove</a> ' + string + '</li>'); } } }); $(document).on('click', '.eliminar', function() { $(this).parent('li').remove(); }); }); </script>
CAŁY KOD
Kod HTML JQUERY CSS