drag handler
$("#draggable").bind('drag', function(e, ui) { xPos = e.pageX; yPos = e.pageY; $("#monitor").html(e.pageX +', '+ e.pageY); });