Perhaps what you want to do:
$(item).bind('dropthis', function(e){
console.log('triggered');
}).droppable({
drop: function(event, ui) {
$(this).trigger('dropthis',[event, ui]);
}
});
And raise the drop event:
$(item).trigger("dropthis", [{},{draggable : $(target_item)}]);
source
share