D
D
De Slow2019-05-27 16:00:46
css
De Slow, 2019-05-27 16:00:46

How to open 2 modal windows at the same time?

<a  onclick="location.href='download.psd'"  class="btn js-open btn-primary" data-toggle="modal" data-target=".bd-example-modal-lg ">Get template </a>

At the moment, the link looks like this
onclick="location.href='download.psd'"
Causes a file download (PSD Template)
data-target=".bd-example-modal-lg "
Causes the opening of one large Bootstrap modal window
We need to add another modal window that will open on this link (Button), how can this be implemented? (
I understand that one a window can block another, nothing, one window can be blocked

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-05-27
@shketi4

<script type="text/javascript">
 $('.js-open').on( "click", function() {
   $('#Modal1').modal('show');
   $('#Modal2').modal('show');
});</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question