funerr
funerr

Reputation: 8156

jQuery Events Triggering after others

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

Answers (1)

slash197
slash197

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

Related Questions