Not possible to hide confirm button, or cancel button
See original GitHub issue$.confirm({
title: false, // hides the title.
cancelButton: false ,// hides the cancel button.
confirmButton: false, // hides the confirm button.
closeIcon: false, // hides the close icon.
content: false, // hides content block.
});
This displays as below:
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
javascript - window.confirm take the cancel button out
Or simply alert , just like window.confirm can be confirm (unless you hide those with variables with those names.
Read more >I need Cancel Button to be removed from java script ...
I need Cancel Button to be removed from java script confirm/alert box. <a href="javascript: if (confirm('Message....')) { window.open('https:// ...
Read more >jquery-confirm.js | The multipurpose alert & confirm
The closeIcon is only visible if both confirm & cancel buttons are hidden. (dialog mode). Shorthand to hide both buttons is to use...
Read more >Docs
Description: If set to true , the confirm button turns red and the default focus is set on the cancel button instead. This...
Read more >Button Component - Appian 20.4
In the confirmation dialog there are two buttons. The confirm button is in the primary position and the cancel button is in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
buttons: { ok: { isHidden: true, // hide the button } }
This can actually be done:
Create a class named ‘hide’ in css if not in framework that you are using.
.hide{ display: none }
Now in jQuery
$(".confirm").confirm({confirmButtonClass: 'hide'});
this will do the trick