开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜