The following (seemingly undocumented) works for me with jQuery 1.8.9:
$("#dlg").dialog({
buttons : {
"MyButton" : {
text: "My Button",
id: "my-button-id",
click: function(){
alert("here");
}
}
}
});
The button can be addressed via $(“#my-button-id”)