$('.dragitem').draggable({ onDrag:function(e){ this.x = e.pageX; this.y = e.pageY; }});$('#test').droppable({ onDrop:function(e,source){ var x = source.x; var y = source.y; }});