I’m trying to make drag/drop navigation creator menu on my custom CMS.
I would like to create a callback function for this event.
- There are 3 links in div
#links(just<li><a href="#">Link</a></li>) - There is a div called div
#dropzone.
I would like to have a callback function like this:
$.("#dropzone").onDrop(function() { alert "Callback"; });
How can I do this using HTML5 (if any new features about dropping exists) and jQuery? Once I get the callback, I can do the rest myself.
You can use draggable feature provided by jQuery UI. It has the stop event which fires when the dragging of the element is stopped. Go through the following link
[http://jqueryui.com/demos/draggable/][1] for more details. see the events tag for the events available.