draggable + click [SOLVED]

draggable + click [SOLVED]

hi,

i use draggable() to drag a pictrue which i cloned before and after that i use click() to remove it. Well maybe someone can see the problem. When i want to drag a pictrue I have to click it, so it is removed after dragging. But i want to drag it more than once. I just don't know how.

Here a piece of the code:

...

$(this).draggable();
   
$(this).click(function(){

$(this).animate({width:originalwidth, height:originalheight, left:positionleft, top:positiontop}, "normal", function(){
      
$(this).remove();


});

...


Maybe someone of you have an idea.
Thanks

weidc