T
T
temakorolev12020-10-16 21:14:02
JavaScript
temakorolev1, 2020-10-16 21:14:02

Bootstrap 4 is it possible to remove the modal somehow?

I have a function that renders a modal window, but hiding it is problematic. You need to remove the class from the body, then remove the dark background. In short, very uncomfortable. Maybe bootsrtap has a ready-made function that removes a modal window from the page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
scottparker, 2020-10-16
@scottparker

so it is, and it is written in the same place as the opening of the same window

V
Vladik Bubin, 2020-10-17
@ikoit

You can read all the information here: https://getbootstrap.com/docs/4.5/components/modal/
Even if you just copy the modal window, you will have a close button (don't forget to include the bootstrap scripts):5f8a0fb7d1efb541924143.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question