C
C
Canis_Lupus2018-02-15 17:37:54
Bootstrap
Canis_Lupus, 2018-02-15 17:37:54

How to run script in Bootstrap modal window?

It is necessary to make sure that the script is executed in the Bootstrap modal window, BUT only after clicking on the button / link to call this window, and not when the page loads.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2018-02-15
@Canis_Lupus

$( '#modal' ).on( 'shown.bs.modal', function() {
    // код
} );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question