All Questions
Tagged with twitter-bootstrap-3 modal-dialog
34
questions
245
votes
35
answers
354k
views
Multiple modals overlay
I need that the overlay shows above the first modal, not in the back.
$('#openBtn').click(function(){
$('#myModal').modal({show:true})
});
<a data-toggle="modal" href="#myModal" class="btn ...
125
votes
24
answers
527k
views
Bootstrap: Open Another Modal in Modal
So, I'm using this code to open another modal window in a current opened modal window:
<a onclick=\"$('#login').modal('hide');$('#lost').modal('show');\" href='#'>Click</a>
What happens ...
80
votes
6
answers
389k
views
Bootstrap 3 - How to load content in modal body via AJAX?
As you can see here, I have a button that launches a modal. Setting an href url for the button this url is automatically loaded into modal by Bootstrap 3.
The fact is this page is loaded into modal ...
108
votes
22
answers
216k
views
bootstrap jquery show.bs.modal event won't fire
i'm using the modal example from the bootstrap 3 docs. the modal works. however i need to access the show.bs.modal event when it fires. for now i'm just trying:
$('#myModal').on('show.bs.modal', ...
42
votes
19
answers
118k
views
How to prevent background scrolling when Bootstrap 3 modal open on mobile browsers?
How to prevent background scrolling when Bootstrap 3 modal open on mobile platforms? On desktop browsers the background is prevented from scrolling and works as it should.
On mobile browsers (Safari ...
34
votes
6
answers
61k
views
How can I change the width of a Bootstrap 3 modal in IE8?
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8.
I'm just adding a class (wide-modal in this example) to the modal-...
24
votes
4
answers
90k
views
Bootstrap 3.0 Modal
I am stuck. Given Bootstrap 3.0 is about to be released, I decided to go with it for a new project. Things are going fine so far, but for the life of me, I can't figure out how to do a Modal Dialog in ...
18
votes
5
answers
32k
views
Bootstrap 3.0.0 modal events not firing
I can't seem to get modal events working at all using Bootstrap 3. I want to perform an action when my modal closes, but nothing's happening.
Here's my stripped back HTML:
<button type="button" ...
13
votes
4
answers
8k
views
How can I unfocus the modal trigger button after closing the modal in bootstrap
I can't seem to blur the button after closing the modal.
$('#exampleModal').on('hidden.bs.modal', function(e){
$('button').blur();
});
I've tried the above and it still doesn't seem to ...
6
votes
4
answers
37k
views
Bootstrap modal form does not close after submit
What I need to do is to show a popup to add a new record to my database, im using bootstrap 3 and I love it because im not using a single line of jquery, and I have really nice form (obvioulsy they ...
4
votes
1
answer
5k
views
Prevent bootstrap-3 modal from closing when the form has changes
I'm trying to prevent the bootstrap-3 modal from closing without warning when there are changes made to the form inside the modal. However when I listen to the events fired by the modal and return ...
3
votes
1
answer
11k
views
Open bootstrap modal in new tab
Is there anyway to open bootstrap modal in new tab after click middle mouse button (or just simply click right mouse button on item and click "Open in new tab")?
Expected behaviour:
User can open ...
30
votes
3
answers
57k
views
Twitter Bootstrap 3 Modal with Scrollable Body
I am moving from Bootstrap 2 to Bootstrap 3. In the old version, I was using modals which had long content, and the modals automatically scrolled when a given max height was reached.
In Bootstrap 3, ...
22
votes
4
answers
57k
views
How to prevent bootstrap modal from closing from button using onclick?
i have modal with button (Save)
<button type="button" class="btn btn-success btn-sm" data-dismiss="modal" onclick="do_save()">Save
</button>
how to prevent closing when do_save() ...
9
votes
2
answers
7k
views
Scroll to element inside modal window
I have a modal window and need to be able to open the modal and then scroll the user to a specific spot in the modal.
I am getting the modal contents with AJAX to a PHP script.
eg mypage.php?loc=...