开发者

Update table content while dragging the element using jquery

开发者 https://www.devze.com 2023-01-09 21:37 出处:网络
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

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

精彩评论

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

关注公众号