i want the draggable object to revert back to its original position when i click a button.
i used \'destroy\' option but it doesnt seem to work. it disables the dragging but
//reposition the draggable after it has finished
$(".selector").draggable({
stop: function(e,ui) {
ui.instance.element.css("left","0px");
ui.instance.element.css("top","0px");
}
});