So I want to handle the Bootstrap modal close/dismiss event. I have only ever been able to find the JQuery version on the interweb. How do we do this with native javascript?
I tried:
document.querySelector('#modal').addEventListener('hidden.bs.modal', onClick);
Of course, it didn't work. Does anyone have the knowledge and care to show me how? Thanks.