可选择的可丢弃 [英] selectable with dropable

查看:88
本文介绍了可选择的可丢弃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我有一个包含9格栅的屏幕。



另一个一个是一个div,可以拖放到一个div格子上



现在要求已经改变,



现在我想把可拖动的div放到多个网格div上



现在我的问题是我怎样才能放弃多个div



谢谢。

解决方案

尝试在此链接中给出的此解决方案,因为它没有完全根据您的需求进行定制,但有些可能会有所帮助在某种程度上

http://www.jeasyui.com/tutorial/dd/dnd1 .php [ ^ ]



或此链接也可以帮助您 http://stackoverflow.com/questions/ 18204135 / create-nested-drag-and-drop-divs-with-jquery-ui [ ^ ]



这和类似的要求一样你的 http://forum.jquery.com/topic/drag-and -drop-one-div-to-many-divs [ ^ ]



u需要通过所有链接,并且必须做一些工作让事情适合你。


现在,它更清晰,所以你想一次将一个div拖放到所有其他9个div,对吧?请尝试以下演示代码并进行调整:



 <  !doctype     html  >  
< head >
< title > jQuery拖动和克隆< / title >
< script src = http://code.jquery.com/jquery-1.9.1.js > < / script >
< script src = http://code.jquery.com/ui/1.10.3/ jquery-ui.js > < / script >

< script >


(document).ready(function(){

Hello frnds,

I have a screen with contain 9 div grid.

And another one is a single div which can drag and drop on one of div of grid

Now the requirement has change ,

Now i want to drop dragable div to multiple div of grid

Now my question is how can i drop on multiple div

Thanks.

解决方案

try this solution given in this link as it is not fully customized to your needs but some how might be helpful to some extent
http://www.jeasyui.com/tutorial/dd/dnd1.php[^]

or this link also might helps you http://stackoverflow.com/questions/18204135/create-nested-drag-and-drop-divs-with-jquery-ui[^]

and this is similar requirement as like your http://forum.jquery.com/topic/drag-and-drop-one-div-to-many-divs[^]

u need to go thru all the links and have to do a little work around to make things work for you.


Now, it is clearer, So you want to drag and drop a div to all the other 9 divs all at once, right? Try the following demo code and adapt:

<!doctype html>
<head>
<title>jQuery Drag and Clone</title>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<script>


(document).ready(function(){


这篇关于可选择的可丢弃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆