Hello everybody !
I'm asking myself for a while before asking my question on the group.
I'm trying to make a nice DnD tool but I have one problem :
I declare to my draggable the option "revert:true" and I would like to
"delete" it if the draggable matches the droppable box, if not, the
revert is "run" as excepted.
So I tried a lot of tricks such as :
$('.droppable').droppable({
drop: function(ev, ui) {
$(ui.draggable.revert) = false;
}})
or even :
$('.droppable').droppable({
drop: function(ev, ui) {
$(ui.draggable.element).remove();
}})
But the result is not there.
Anybody have an advice for me or maybe THE solution.
Thanks a lot and sorry for my poor English !