Applying Bootstrap to button in jQuery Ui dialog code

I came across the following code from the following website. I was wondering if I have to make the Ok button look like bootstrap one, where would I be inserting the class="btn btn-default" which is required for bootstrap buttons?

$.extend({ alert: function (message, title) {
  $("<div></div>").dialog( {
    buttons: { "Ok": function () { $(this).dialog("close"); } },
    close: function (event, ui) { $(this).remove(); },
    resizable: false,
    title: title,
    modal: true
  }).text(message);
}
});

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.