$('#element').draggable ({
stop: function () {
alert ('stopped');
//do some action here
}
}).trigger('stop');
nothing happens, thought #element
is draggable now and event does execute after drag is complete. I tried .triggerHandle
as well as 'dragstop'
as eventtype, no luck
Use this to trigger it instead:
.trigger('dragstop')
If you want it to behave completely as a normal event, use .bind('dragstop', function) to attach it as well, the start option behaves slightly differently.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With