drag event for jquery-ui-sortable
问题 How to listen to drag event when a jquery-ui-sortable is being dragged? By hit-n-trial strategy, I've tried drag event from jquery-ui-draggable but it's not working. $('.widget_container').sortable({ drag: function(event, ui) { console.log('drag'); } }); 回答1: Use sort event for this purpose: $(".sortable").sortable({ sort: function(e) { console.log('X:' + e.screenX, 'Y:' + e.screenY); } }); http://jsbin.com/kegeb 回答2: If you need to handle the event when the user starts to drag, you should