开发者

Draggable <td> content using jQuery

开发者 https://www.devze.com 2022-12-16 18:58 出处:网络
I would like to use jQuery and its drag-and-drop function, such as: http://jqueryui.com/demos/draggable/

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

精彩评论

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

关注公众号