$(\'#element\').draggable ({ stop: function () { alert (\'stopped\'); //do some action here } }).trigger(\'stop\');
nothing
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.