Although the above answer is great, it applies to all buttons. The following is an example of a modal dialog that can position each button separately and can also be individual.
$("#divModelPopup").dialog({ closeOnEscape: false, width: 500, minWidth: 500, minHeight: 400, modal: true, open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); }, title: "Terms & Conditions", buttons: { "I Decline": { click: function () { $(".lnkLogout").click(); }, text: "I Decline", class: "btnDlgDecline" }, "I Accept": { click: function () { $(this).dialog("close");
And then in CSS,
.btnDlgDecline{ position: absolute; left: 10px; color: red !important; } .btnDlgAccept{ color: green !important; }
Hope this helps.
source share