How do I get the coordinate position after using jQuery drag and drop? I want to save the coordinate to a database, so that next time I visit, the item will be in that posi
This worked for me:
$("#element1").droppable( { drop: function(event, ui) { var currentPos = ui.helper.position(); alert("left="+parseInt(currentPos.left)+" top="+parseInt(currentPos.top)); } });