Here's my dragdrop code:
sym.$('card2').draggable({opacity:.5,revert:'invalid'});
sym.$('droptarget2').droppable({
accept:sym.$("card2"),
drop: function() {
sym.getSymbol("card2").play();
sym.getSymbol("droptarget2").play();
}
}
);
I want to have 2 different actions happen depending on the filename.
ie.
if (droppedfilename=="qs.png") {
// accept and fade out
} else {
// don't accept
}
How do I detect the filename of the dropped image.