I know that you can use the jQuery-UI widgets like buttons with icons. For example:
$('#MyButton1').button({
icons: {
primary: "ui-icon-search"
}
});
But how you can insert a button with an icon into a dialog?
$('#MyDialog').dialog({
buttons: {
"Ok": function() {
}
}
});