mouseup event dialog position

mouseup event dialog position

Hello!, how do i get the current position of a standard jquery dialog when the mouseup is triggered?

there could be many Dialogs on the page so it must get the position dynamic from the x1 .... xX dialog.

i have attached the event to the ui-dialog-titlebar class that all dialogs use as i want the event to be triggered when you move the dialog, but how do i get the current dialog position when i release the mose?