开发者

ui sortable object

开发者 https://www.devze.com 2022-12-10 12:34 出处:网络
I\'am using the following code: $(\"#sortable\").sortable({ cursor: \'move\', update: function (e, ui) {

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消