I would like to fire an event when a specific draggable element is dropped in any droppable element.
Each droppable element has a drop event, but using that would be awkward.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because it would be nonsense. Droppable has
drop, Draggable hasdrag, why should object with Draggable interface has eventdroppedwhich is from its nameevent for droppable when it's releasedYou can implement bind (
dragover,dragenter,drop) to object which should receive dropped element, but this shouldn’t be default for Draggable (info)Or try to create what you need via
dragstopcallback in Draggable