1$("#dialog_box").dialog({
2 autoOpen: false,
3 modal: true,
4 resizable: false,
5 buttons: [{
6 text: "Ok",
7 "id": "btnOk",
8 click: function () {
9 //okCallback();
10 },
11
12 }, {
13 text: "Cancel",
14 click: function () {
15 //cancelCallback();
16 },
17 }],
18 close: function () {
19 //do something
20 }
21});
22
23var newLabel = "Updated Label";
24$("#btnOk").html('<span class="ui-button-text">'+ newLabel +'</span>')