views:

37

answers:

1

hi my question is can we update the table content while dragging/resizing the div.The content is the position and size of the div that is dragged or re-sized please help mee

+1  A: 

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/

Blair McMillan
@Blair McMillan thanks,it is working
shahul