I have div container and inside couple divs with class demo like
<div id='container' style='width:500px;height:500px;'>
<div class='demo' style='width:100px;height:100px;'></div>
<div class='demo' style='width:100px;height:100px;'></div>
<div class='demo' style='width:100px;height:100px;'></div>
</div>
and function inside ready in jquery
$(function(){
$('.demo').draggable()
.resizable({
stop:function(event,ui){}
alert(ui.size.width+' '+ui.size.height);
})
});
How to fetch position of left top corner (relative to parent div id=container) when I finish dragging div with class=’demo’ insider parent div id=”container”?
You need to use
stopandpositionmethods