'Press <span style="font-size: 20px;">Y</span> to proceed.',
buttons: {
yes: {
- btnClass: 'hide', // hide is a bootstrap class to hide elements
+ hide: true, // hide the button using CSS
keys: ['y'],
action: function () {
$.alert('Critical action <strong>was performed</strong>.');
@@ -1506,7 +1508,7 @@
Button keys
'Press Y to proceed.',
buttons: {
yes: {
- btnClass: 'hide', // hide is a bootstrap class to hide elements
+ hide: true,
keys: ['y'],
action: function () {
$.alert('Critical action was performed.');
@@ -1549,8 +1551,11 @@