I am trying to position dialog on the right of the anchor tag, but with no luck.
I checked the solutions at jQuery UI dialog positioning and neither seems to work.
function openDialog(row_index) {
var target = $('#note'+row_index);
$("#dialog_content_"+row_index).dialog({ width:150 },
{ height:80 }).dialog('widget').position({
my: 'left',
at: 'right',
of: target
});
}
And this HTML
<a id="note10" onclick="openDialog('10')" style="cursor:pointer">0010</a>
<div style="display:none" title="Title 10" id="dialog_content_10">Row 10</div>