How do I access the cloned instance in connectToSortable?

How do I access the cloned instance in connectToSortable?


Hi,
The heart of my problem is that I have to be able to drag a button into a
sortable list but insert a seperate div into the sortable that's hiding down
the page instead of inserting the draggable button into the list.
I was planning to achieve this through targeting the cloned instance of the
button and then replacing the HTML with my div. I can't, however, figure
out how to do it as I'm pretty much a JS newb. Of course, if there's a
better way to do this I'm all ears!
Here's the code for my draggables... any help is greatly appreciated.
Thanks!
    $(".drag-btn").draggable({
        zIndex: 1000,
        revert: true,
        distance: 10,
        helper: 'clone',
        connectToSortable: "#preview-col1",
        toSortable:function(){
            inSortable = true;
        },
        fromSortable:function(){
            inSortable = false;
        },
        stop:function(e,ui){
            if(inSortable){
                ui.helper.hide();
                
                //Replace instance with DIV that's hiding below
                
            } else {
                addField(this);
                refreshPreviewSortables();
            }
        }
    })
--
View this message in context: http://www.nabble.com/How-do-I-access-the-cloned-instance-in-connectToSortable--tp18099993s27240p18099993.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.