Menu
Hi,
I’m trying to have a droppable accepting 2 different class objects that will call 2 different functions. However I cannot find a way to make it work, only the first “drop” action is working, the second one never works. Here is how my code looks like:
$(“#obj1″).droppable({drop: function(event,ui){OnItemRemove($(ui.draggable))},accept:”.class1″});
$(“#obj1″).droppable({drop: function(event,ui){OnItemMove($(ui.draggable))},accept:”.class2″});
if I drag an item of class1, the droppable will call the function OnItemRemove. If I try to drag an item of class2, nothing happen.
Any idea what I’m missing here?
Thanks