Javascript ondrag, ondragstart, ondragend

后端 未结 5 1880
暗喜
暗喜 2020-12-09 05:14

I\'ve been trying to use ondrag() and some other functions on a div rendered dynamically on an HTML page.

None of these events

5条回答
  •  被撕碎了的回忆
    2020-12-09 06:05

    I haven't used drag myself much but I believe it's the drag "edit action" - eg selecting text and dragging it within a textbox/textarea.

    You may need to implement your own onmousedown() onmouseup() and onmousemove() handlers for the functionality I think you're after

提交回复
热议问题