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
4
votes
0 answers

BootBox JS for Twitter Bootstrap - how to pass data into the callback function?

JS/JQuery newbie here. I'm using BootBox for Twitter Bootstrap, and I'm trying to pass the value of the id attribute of an a element into the callback function:
stoo
  • 97
  • 1
  • 5
3
votes
2 answers

Bootbox dialog.modal('hide') doesn't hide modal

I have a problem with bootbox.js modals. I wanted to use bootbox.dialog for pausing UI while Ajax is being executed and waiting for response. Everything works cool if I use dialog.modal('hide'); inside bootbox.alert with confirm (after clicking OK…
Cezar
  • 345
  • 6
  • 18
3
votes
2 answers

How to hide bootbox.js modals

I want to hide all of my bootbox modals. I currently have 2 modal and after I click on Cancel, I want to hide the all other modals. Here's my code: $('#table-grid').delegate(".requestBill", "click", function () { // store the checked checkbox…
Yettt
  • 21
  • 1
  • 10
3
votes
1 answer

How to prevent bootbox modal from closing by clicking on a button?

I add a button in the footer and I don't want that the modal close when I click on it. I tried preventDefault but it doesn't work.. dialog.find('.modal-footer').append('') I use…
Mercenaire
  • 206
  • 1
  • 14
3
votes
1 answer

Using bootbox in RequireJS app

I have a sample app.js file with: requirejs.config({ "baseUrl": "js/lib", "paths": { "jquery": "jquery", "app": "../app", "bootstrap": "bootstrap/js/bootstrap.bundle", "bootbox": "bootbox.min" }, "shim": { …
Andrew Newby
  • 4,941
  • 6
  • 40
  • 81
3
votes
4 answers

JQuery Select2 does not display properly inside bootbox dialog modal

When I use JQuery Select2 on a page it works fine. However, when it's inside a bootbox dialog modal, it doesn't display right. Here is the jquery code I'm using... $.ajax({ type: 'GET', url: src, success: function (data) { …
Keith Harris
  • 1,118
  • 3
  • 13
  • 25
3
votes
3 answers

Disable all previous checkboxes except last one, enable preceding checkbox when other enabled

I've searched a while for this, but can't find a solution. Basically, I have a simple form, that will by dynamic (up to 20 cycles can exist for an ID). The validation to delete the Cycles, say that there are 3 of them, 1, 2, and 3, is that you can…
gamehendgeVA
  • 149
  • 1
  • 3
  • 15
3
votes
1 answer

Add bootbox.js confirmation box to href link

I'm using some href tabs to draw buttons across all the rows in an html table. When the user clicks the row button it will redirect user to another PHP script with some row values using HTML GET. But in my current implementation when user clicks the…
rafalefighter
  • 714
  • 2
  • 11
  • 39
3
votes
1 answer

Bootbox callback form submit not working properly

I'm dynamically creating some forms and I'm using bootbox 4 alongside bootstrap 3 and jquery 3.1.0 in an MVC5 application. Edit: I updated my project's jquery from 1.10.2 to 3.1.0, still have the same issue below. Usage: click remove, bootbox…
Joe Cuevas
  • 75
  • 1
  • 7
3
votes
2 answers

Bootbox "confirm" callback on hitting enter

I use Bootbox.js (http://bootboxjs.com/) to pop up forms in my application. Bootbox has an API for specifying callbacks on any custom buttons you may choose to add to your dialog. For example, here's an options object that gets passed into…
Greg Pettit
  • 10,749
  • 5
  • 53
  • 72
3
votes
3 answers

Bootbox - how to dynamically change message content?

I was wondering if there is a way to dinamically update the content of a bootbox modal. Example bootbox.dialog({ message: "Hi there", title: "My title", buttons: { main: { label: "dismiss", …
Mirco Lcl
  • 373
  • 7
  • 19
3
votes
1 answer

AngularJS/HTML - trying to escape close tag in custom directive

I'm trying to see if there is a good way to implmenet ng-bootbox with a custom directive for selecting address. Here is a basic example
3
votes
1 answer

Rails delete link call from javascript

With rails I can do this: <%= link_to("Delete", product, :method => :delete, data: {confirm: 'Are you sure?.'} id: 'discard_btn') %> and I know that when the click is received, a standard javascript confirm…
Hernan Velasquez
  • 2,770
  • 14
  • 21
3
votes
3 answers

Customize bootbox prompt

I want to customize bootbox prompt input box. I want add clsss attribute in input element. I try this code bootbox.prompt({ title: 'Enter Mobile Number', placeholder: '8801XXXXXXXXX', buttons: { confirm: { label:…
Md. Sahadat Hossain
  • 3,210
  • 4
  • 32
  • 55
3
votes
2 answers

Bootbox input lost focus on alt key

I'm currently trying to make a user settings page. On this page, the user can change his email by pressing a button that open a popup. On this popup, he should be able to type his new email. The problem is, when I press the Alt key, I lose the…
c.censier
  • 781
  • 7
  • 23