javascript - jQuery - Drag and drop - Get DROP left and top position -
I should know where the user leaves the element on how to drop both the .left and .top position on the drop down Can i do Use ui.position which The ui.offset inside the drop callback relative to the offset element {top, left} which is similar to the page again {top, left} returns.
function init () {$ ('# draggable') dragable () .; $ ('Body') Droppable ({drop: function (Event, UI) {// ECO Position Alert (ui.position.top); Alert (ui.position.left);}}); }
Comments
Post a Comment