Questions tagged [bootbox]

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals.

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.


Useful resources :

459 questions
2
votes
2 answers

How can I add an option to resize a bootbox alert

How can I add an option to resize a bootbox.alert(); ? I'm using Bootbox 4.3.0. bootbox.alert("Success",function(){ }); Here is the link for the bootbox.js library.
ashTon
  • 1,101
  • 4
  • 14
  • 23
2
votes
2 answers

How to attach bootbox onclose event?

I have this part of code that uses bootboxjs function BootBox(title,message,callback) { var box = bootbox.dialog({ show: false, backdrop: true, animate: false, title: title, message: message, …
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
2
votes
2 answers

Javascript callback function for confirm bootbox

I am using bootbox for confirm alert box that I alert to user. It is called from one js file and I have a common function where it is created. How can I use callback function to get the result of the confirm dialog box: So my js is as below: var…
Ctrl_Alt_Defeat
  • 3,933
  • 12
  • 66
  • 116
2
votes
2 answers

How to create a bootbox prompt with a bootstrap datepicker as input

I am creating a dialog box using bootbox. bootbox.dialog({ message: 'Datepicker input: ', title: "Custom label", buttons: { main: { label: "Save", className: "btn-primary", …
lomse
  • 4,045
  • 6
  • 47
  • 68
2
votes
2 answers
2
votes
3 answers

Bootbox.prompt() set focus on text field

I can't seem to set the focus on Bootbox's textfield automatically. here's my code: function setCode(myCode){ bootbox.confirm("Enter your PIN: ", function(result) { …
BrownChiLD
  • 3,545
  • 9
  • 43
  • 61
2
votes
2 answers

Bootbox, two modal windows - one above another

I have two bootbox modal windows - parent and child. If user enters wrong data and try to save the parent modal window, the child window appears. The problem is - when the child window appears, it's still possible to click on the parent modal window…
user3091443
2
votes
2 answers

Prompt popup in bootbox is not closing

The prompt popup that occurs when I click the button with class 'alert3' does not close. CLICKMEMEMEMEMEME and this is the function that I am invoking: