开发者

Update table content while dragging the element using jquery

my question is can we update the table content while dragging/re开发者_C百科sizing the div.The content is the position and size of the div that is dragged or re-sized please help mee


Assuming you are using jQuery Draggable, you could use the drag part of it:

$("#draggable").draggable({
    drag: function() {
        var offset = $(this).offset();
         $(this).html(offset.left + ', ' + offset.top);
    }
});

Example: http://jsfiddle.net/QH6QP/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜