admin管理员组文章数量:1425777
I want to drag some elements and drop it in some other containers. The following example works for objects that are both draggable and droppable
/
But when I try to make some of them draggable and others only droppable it doesn't work
/
I know how to use jQueryUI to do this, but I want to do the same using pure HTML5.
I want to drag some elements and drop it in some other containers. The following example works for objects that are both draggable and droppable
http://jsfiddle/AwCuM/
But when I try to make some of them draggable and others only droppable it doesn't work
http://jsfiddle/4adJk/10/
I know how to use jQueryUI to do this, but I want to do the same using pure HTML5.
Share Improve this question asked May 24, 2012 at 16:30 Jader DiasJader Dias 90.7k160 gold badges435 silver badges633 bronze badges 1- I want to achieve the same functionality as shown in the following demo jqueryui./demos/droppable – Jader Dias Commented Jun 5, 2012 at 16:32
1 Answer
Reset to default 3Looking at Mozilla's HTML docs
I found that I need to handle the dragover
event.
The plete solution can be viewed at:
http://jsfiddle/Dema8/7/
本文标签: javascriptHow to make some elements draggable and other droppable using HTML5Stack Overflow
版权声明:本文标题:javascript - How to make some elements draggable and other droppable using HTML5? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745428643a2658228.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论