How to catch dragend event in JavaScript?

后端 未结 2 1973
挽巷
挽巷 2020-12-18 04:51

I\'m trying to catch the dragend event in JavaScript for a draggable DIV. The dragend event is not fired at all, why ? and how to solve this ? PS, I\'m using .draggable() me

2条回答
  •  感动是毒
    2020-12-18 05:17

    Try using dragstop instead of dragend

    .bind('dragstop',   function(){ $("#divId").text("drag ended");});
    

提交回复
热议问题