question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

screen shot 2016-06-09 at 22 18 41

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
mhavidcommented, Aug 25, 2020

buttons: { ok: { isHidden: true, // hide the button } }

1reaction
gags88commented, Oct 8, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found