How to open modal on page load ? #1237
Unanswered
jozefrebjak
asked this question in
Q&A
Replies: 3 comments 6 replies
-
As far as i am aware you cannot properly open bootstrap modals by setting the style. You will have to execute some javascript on page load to programatically open the modal. See the bootstrap documentation for more information. |
Beta Was this translation helpful? Give feedback.
0 replies
-
let myModal = new bootstrap.Modal(document.getElementById('test-modal'), {}); |
Beta Was this translation helpful? Give feedback.
4 replies
-
I get it working, but I need to import also BootstrapJS, till the now I don't need bootstrap native JS at all, tabler.min.js was enought to use. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to open modal on page load. I tried to change
style
fromto
but then I can't close the modal.
Is there some solution ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions