I have a list of pictures that I would like to allow the user to drag and drop to a trash can. All works fine except an unwanted get request is made on the picture, after it is trashed.
Here is the code: ============ $(document).ready(function(){ $(".photos img").draggable(); $("#trash").droppable({ accept: "img", drop: function(ev, ui){ var url = window.location + "/photos/" + ui.draggable.attr("id"); $.post(url, {'_method': "delete"}, function(){ $(ui.draggable).remove(); }); return false; } }); }); Is there an option for the droppable method, to prevent the bubbling, that I am not aware of? Thanks for the help.