Tushar Ahirrao
Tushar Ahirrao

Reputation: 13135

How to re-drag on once element is drop in drop container

I am using jquery drag and drop plugin, I want to hide replica of drag element while dragging and once drag element is dropped on drop container it should be re-draggable.

My code is :

$(".dragButton").draggable({
           helper: 'clone'
 });

$(".dropBox").droppable({
    activeClass: "ui-state-hover"
});

Please help me.

Upvotes: 0

Views: 147

Answers (1)

ggzone
ggzone

Reputation: 3711

as your .dragButton has the same class it should still be dragable. otherwise use the callback function to make your dropped element dragable again

Upvotes: 1

Related Questions