How do you use jQuery's .draggable to drag a table cell?

本秂侑毒 提交于 2019-12-02 12:17:26

问题


In this Fiddle I want to make a jQuery or Javascript interaction that will allow me to drag the first table cell (Name) and pull it out. .draggable seems to only work with divs. Is there a solution or should i give up on trying to make a UI using tables? http://jsfiddle.net/4XyzJ/33/


回答1:


You can try out with this plugin http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/

and with table cells is this is what you need http://www.jeasyui.com/tutorial/dd/dnd3.php




回答2:


You could put a div in the cell and drag that.



来源:https://stackoverflow.com/questions/10376168/how-do-you-use-jquerys-draggable-to-drag-a-table-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!