Title: how to fire onStopDrag event when stop drag the div Post by: balri771 on December 11, 2013, 10:37:28 PM how to fire onStopDrag event when stop drog the div .
my code <div id="a" ></div> $('#a').draggable({ revert: false, // proxy: 'clone', onStartDrag: function (e) { $(this).draggable('options').cursor = 'not-allowed'; }, onStopDrag: function (e) { drag(); } }); the function drag don't be triggered when I stop drag the div.it is just too weired.anyone can help? thanks a lot! blari Title: Re: how to fire onStopDrag event when stop drag the div Post by: stworthy on December 12, 2013, 12:04:26 AM Please refer to this example http://jsfiddle.net/qWwKD/. It works fine.
|