views:

53

answers:

1

Hi

i am using the code bellow

$(#sortable").sortable({ cursor: 'move',

  update: function (e, ui) { 
   alert(ui.position);
  }

}).disableSelection();

BUT i dont get the position as expected.

The ui object has position, or i am doing something wrong??

A: 

It does, ui.position is an object. You need to call ui.position.left and ui.position.top.

William