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/
精彩评论