I am using Bootstrap for a web application and using bootbox (http://bootboxjs.com) for showing a window before proceeding with a delete operation.
For different delete options, I need to display different messages. I would like to show confirmation windows with different widths.
How can I do this dynamically in javascript code? I looked at everything and am unable to find a solution.
Thanks for any ideas and suggestions!
Cheers.
None of the answers above worked for me so I fiddled around until the following did what I expected (using Bootbox.js v4.2.0)
Javascript:
bootbox.alert("Hello").find("div.modal-dialog").addClass("largeWidth");
CSS:
.largeWidth {
margin: 0 auto;
width: 90%;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With