bbtron bbtron - 1 year ago 156
jQuery Question

Dragstop on JQuery

Im using JQuery for recognizing dragstart and dragstop.
The dragstart event is working perfectly but the dragstop event doesn't.
Here is the code i wrote-

$('img').on('dragstart', function (event) {
$(function() {

$('img').on('dragstop', function (event) {


Answer Source

Use dragend event! Fired when a drag operation is being ended

Refer HTML Drag and Drop API for all the events.

$('img').on('dragstart', function(event) {
  $(function() {

$('img').on('dragend', function(event) {
<script src=""></script>
<img src="" id="image" height="100px" width="100px" />

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download