How do you use jQuery's .draggable to drag a t

2019-03-01 20:04发布

问题:

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.