将现有div标签重新放置在div标签已经存在的位置 [英] Repositioning the existing div tag at the position where div tag already exists

查看:127
本文介绍了将现有div标签重新放置在div标签已经存在的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Web开发的新手,并尝试了所有可以从互联网获得的代码帮助.
我在单个div标签中放置了一系列div标签
喜欢

I am new to web development and have tried all the code help that i could get from internet.
I have a series of div tags placed in a single div tag
like

<div class="Draggable" id="MainDiv">
<div id="firstdiv">...</div>
<div id="seconddiv">...</div>
<div id="thirddiv">...</div>
</div>



div标签是在运行时生成的,因此id是随机的.上面给出的id仅用于使读者理解我的问题.
要执行的实际任务是将 firstdiv 重新放置在 seconddiv thirddiv 之间,依此类推,方法是在运行时拖动相应的div.

预先谢谢您..



The div tags are generated at runtime so the id''s are random.the id given above are just for making the readers understand my problem.
The actual task that is to be performed is to reposition firstdiv between seconddiv and thirddiv and so on by dragging the respective div at runtime.

Thank You in advance..

推荐答案

也许这就是您要寻找的 http ://jqueryui.com/demos/sortable/ [ ^ ]
Perhaps this is what your looking for http://jqueryui.com/demos/sortable/[^]


这篇关于将现有div标签重新放置在div标签已经存在的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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