Reputation: 8156
I need an event/events that will do the following:
After user selects text/DOM element, and drags it back and fourth, I need a function to run.
How can I do so smoothly?
(jQuery)
Upvotes: 0
Views: 47
Reputation: 9034
Try jQuery draggable http://jqueryui.com/demos/draggable/
$("#what-will-be-dragged" ).draggable({
stop: function(event, ui) {
//this will run when the dragging stops
}
});
Upvotes: 1