JavaScript How can I add an option to resize a bootbox alert

You should assign a custom class to your bootbox-alert and change its width on the CSS:

jQuery:

bootbox.alert({
      "message": "Success",
      "className" : "my-custom-class",
      "callback": function() {
          console.log("Success callback");
      }
  });

CSS:

.my-custom-class .modal-dialog{
    width:200px;
}

This will take your bootbox alert and size it down.

This is a jsFiddle with the fix you needed.

If you want all of the alerts to be smaller, just change the original modal-dialog class:

.modal-dialog{
    width:200px;
}
Answer:1

We are currently using Zend Framework 1 with Dojo forms, and are facing a recent problem with some users reporting bugs while using our forms on IE11: for example they are able to check multiple radio ...

We are currently using Zend Framework 1 with Dojo forms, and are facing a recent problem with some users reporting bugs while using our forms on IE11: for example they are able to check multiple radio ...

  1. zend framework latest version
  2. zend framework latest
  3. zend framework latest version download
  4. zend framework latest stable version
  5. zend framework 1 latest version
  6. zend framework 2 latest version
  7. php zend framework latest version

first of all just want to say that i'm not a programer but i'm trying to replicate a code and since my javascript is not the best i'm failing at it. The "animation" in css/java/wtv i'm trying to ...

first of all just want to say that i'm not a programer but i'm trying to replicate a code and since my javascript is not the best i'm failing at it. The "animation" in css/java/wtv i'm trying to ...

  1. make hover stay

I'm using c3js to make a chart with row data and want to use specific colours. var chart = c3.generate({ data: { x:'x', rows: [ ['x','Winter 2007-2008','Winter 2008-...

I'm using c3js to make a chart with row data and want to use specific colours. var chart = c3.generate({ data: { x:'x', rows: [ ['x','Winter 2007-2008','Winter 2008-...

According to the wow.js documentation I can set the bottom offset at which the animation will trigger: wow = new WOW( { boxClass: 'wow', // default animateClass: 'animated'...

According to the wow.js documentation I can set the bottom offset at which the animation will trigger: wow = new WOW( { boxClass: 'wow', // default animateClass: 'animated'...