How to get the position of a draggable object

You can use the drag event: $(‘#dragThis’).draggable({ drag: function() { var offset = $(this).offset(); var xPos = offset.left; var yPos = offset.top; $(‘#posX’).text(‘x: ‘ + xPos); $(‘#posY’).text(‘y: ‘ + yPos); } }); JS Fiddle demo. This demo brought to you by the drag event, and the methods offset() and text(). Edited in response to comment … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)