I want to get the position of an element when it is beeing dragged.
My code so far:
$(document).ready(function(){
$("p").text($("div").position().left);
$("p").text($("div").position().top);
$("div").draggable();
})
This only gets the position when the page loads. I want to detect whenever the div is beeing dragged so I can write its position in the p tag.