Skip to content

Instantly share code, notes, and snippets.

@denisos
Created October 5, 2011 17:08
Show Gist options
  • Save denisos/1265030 to your computer and use it in GitHub Desktop.
Save denisos/1265030 to your computer and use it in GitHub Desktop.
jQuery dialog set button text and no title bar
.noTitleDialog .ui-dialog-titlebar {
display:none;
}
var saveHopupYes = "Yes sir";
var saveHopupNo = "No, beat it";
$saveDialog = $('<div></div>')
.dialog({
autoOpen: false,
width: 500,
height: 260,
modal: false,
dialogClass: 'noTitleDialog anyOtherCss',
buttons : [
{
text: saveHopupYes,
click: saveClicked
},
{
text: saveHopupNo ,
click: cancelClicked
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment