This is the exact code I am using to display a JQuery dialog box. It works great, however it displays two buttons. One labeled "Yes" and another labeled "No". I only need one button on
the Dialog box, and I need it to be labeled as "Ok". Is there any way to only have one button, and to have the text read as "Ok". How can I do that?
function displayDialogBox() {
$('<div></div>').appendTo('body')
.html('<div><h6>Alert </h6>
.dialog({
modal:true, title: 'Did not perform process', zIndex:10000, autoOpen: true,
width: '600', resizable: false,
buttons: {
Yes: function() {
$(this).dialog("close");
Reset();
},
No: function() {
$(this).dialog("close");
Reset();
}
});
function Reset()
{
// Code not shown
}