Avatar of brgdotnet
Flag for United States of America

asked on 

How to change buttons on JQuery modal dialog box.

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() {
  .html('<div><h6>Alert </h6>
                      modal:true, title: 'Did not perform process', zIndex:10000, autoOpen: true,
                      width: '600', resizable: false,
                      buttons: {
                                        Yes: function() {
                                       No: function() {

function Reset()
   // Code not shown

Avatar of undefined
Last Comment

8/22/2022 - Mon