Here is what it looks like;
$( \"#box ul li\" ).draggable({
helper: \"clone\"
});
$( \".item\" ).draggable({containment: \".door\"});
$( \".door\" ).dro
Try this Code :
$( ".element" ).draggable({
stop: function (){
var l = ( 100 * parseFloat($(this).css("left")) / parseFloat($(this).parent().css("width")) )+ "%" ;
var t = ( 100 * parseFloat($(this).css("top")) / parseFloat($(this).parent().css("height")) )+ "%" ;
$(this).css("left" , l);
$(this).css("top" , t);
}
});