ui sortable object
I'am using the following code:
$("#sortable").sortable({
cursor: 'move',
update: function (e, ui) {
aler开发者_如何学Got(ui.position);
}
}).disableSelection();
But I don't get the position as expected.
Does ui
object has position, or am I doing something wrong?
It does, ui.position is an object. You need to call ui.position.left and ui.position.top.
精彩评论