Topic: Close Modal from JS/JQuery
I tried doing the hide method like below, but it didn't work.
const myModalEl = document.getElementById('myModal') const modal = new mdb.Modal(myModalEl) modal.hide()
I then tried a hack approach of just hiding the modal and the background myself:
I thought this worked, but it seems to have some things still going on that make the page not work correctly.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.11.0
- Device: Computer
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No