简体   繁体   English

jQuery UI Draggable / Sortable查找要拖动的元素

[英]jQuery UI Draggable/Sortable find element(s) you're dragging over

How do you find the elements your dragging over with jQuery UI. 如何找到使用jQuery UI拖动的元素。 I've searched various event props from the 'over' or 'sort' events but non of them seem to contain that information. 我从“结束”或“排序”事件中搜索了各种事件道具,但其中似乎都没有这些信息。

Did you try ondragover: 您是否尝试过ondragover:

http://www.java2s.com/Code/JavaScript/Event-onMethod/onDragOverExample.htm http://www.java2s.com/Code/JavaScript/Event-onMethod/onDragOverExample.htm

Sounds like should do what you need, but I dont know of any jQuery way of getting this info. 听起来应该做您需要的事情,但是我不知道任何获取此信息的jQuery方法。

It isnt a DOM event but it is stated here that it will work on most browsers: http://help.dottoro.com/ljrkqflw.php 它不是DOM事件,但在此声明它将在大多数浏览器上运行: http : //help.dottoro.com/ljrkqflw.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM