In the example below, how can you use the event and ui objects to detect which link opened the dialog? Can't seem to get $(event.target).attr("title"); to work properly, and I'm having trouble finding documentation on the 'ui object that is passed. Thanks!
$("#dialog_support_option_form").dialog({
link_title = $(event.target).attr("title");
alert(link_title);
});
$("a").live("click", function() {
btn_rel = $(this).attr("rel");
$(btn_rel).dialog("open");
});
<a class="btn pencil" rel="#dialog_support_option_form" title="Edit Support Option">Edit</button>