Try using text
option of your buttons
:
Specifies which buttons should be displayed on the dialog. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object. Multiple types supported: Object: The keys are the button labels and the values are the callbacks for when the associated button is clicked. Array: Each element of the array must be an object defining the attributes, properties, and event handlers to set on the button.
Code:
$(".selector").dialog({
modal: true,
buttons: [{
text: okButtonText,
click: function () {
$(this).dialog("close");
}
}, {
text: cancelButtonText,
click: function () {
$(this).dialog("close");
}
}]
});