Q:

jQuery UI modal dialog, position module underneath/relative to link

i am trying to position my jQuery dialogue modal relative to the to the link that reveals the module. What I ideally like is to open the module directly centered underneath the link.
Below is my code, how would I change this to get the desired effect?
$("#tooltest").bind("click", function (e) {
  $("#LightboxTool").dialog({ 
    show: 'fade',
    hide: 'fade',
    modal: false,
    width: 320,
    minHeight: 180  
  });
  return false;
});

A:

keithnorm has answered this greatly in a jQuery forum as follows:
$('#dialog').dialog({
    position: { 
        my: 'top',
        at: 'top',
        of: $('#some_div')
    }
});

An also this question looks a like a dup of this.

