Thanks again, Richard.

This is what I have so far. This takes the dragged li item and appends
the text and id to the dropped li...and also removes the dragged item
form sortable1

$(document).ready(function() {
        var count = 1;
        $('#sortable1 li').draggable({
                revert: true
        });
 for (var i = 0; i < 5; i++) {
        $('.c'+i+'').droppable( {
                accept: '#sortable1 li',
                activeClass: 'droppable-active',
                hoverClass: 'droppable-hover',
  drop: function(event, ui) {
    $(this).text("C: "+ui.draggable.text());
        $(ui.draggable).remove();
        $(this).attr("id", ui.draggable.attr("id"));
    count++;
  }
        });
  }
});

One more thing I would like to add....the ability to move sortable2
items back to sortable1 and then clear the sortable2 text. I'm going
to continue to play around with it...but no luck so far.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to