开发者

Draggable <td> content using jQuery

I would like to use jQuery and its drag-and-drop function, such as: http://jqueryui.com/demos/draggable/

In my case, I would like to enable drag-and-droping on <td> content of an HTML table. For instance with a table of 20x20, in order to move a <img /> tag from a cell to an other cell.

Is that hard to do? I don't see any example after searches. If you're got one or if you can show me how to process, I will be开发者_开发知识库 cool!


Try using jQuery.ui.sortable. That should allow for drag and drop within the table.


I think you can use a div inside the .so that yo can drag the div and drop it where you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜