bootstrap 4 modal hidden event
Bootstrap 4 Modal Hidden Event
To detect when a Bootstrap 4 modal is hidden, you can use the hidden.bs.modal
event. This event is triggered when the modal is completely hidden from the user. Here's an example of how you can use this event:
$('#myModal').on('hidden.bs.modal', function () {
// Your code here
});
In the example above, #myModal
is the ID of the modal you want to listen to. You can replace it with the ID of your modal.
Note: Make sure you have included the Bootstrap 4 JavaScript file in your HTML document before using this event.
I hope this helps! Let me know if you have any further questions.