Draggable UI, add class to clone when dragged
I have the helper set to clone, and I would like to add a new class to
that clone, so that I can add some extra styles to the item being
dragged. I tried to add a function to do this, but I get syntax
errors. Does draggable even allow what I am trying to do?
$("#adminEditListingB .itemHolder").draggable({
helper: 'clone',
appendTo: 'body',
cursor: 'move',
function () {
$(this).addClass("draggable-active");
}
});