JQueryUI helper helper help

Is it possible to change the clone helper that creates jQueryUI using a drag and drop element? I don’t want the clone to be an assistant, I just want something similar to him.

+5
source share
1 answer

For a parameter helper, cloneuse a function that returns a DOM object instead . Make this object “similar” in any way. Something like that:

$('.selector').draggable({ 
    helper: function(){
        var foo = dom_object_you_create_or_specify;
        return foo;
    }
});

Links: jQuery UI Draggable

+8
source

All Articles