/* This event is fired when the modal has finished being hidden from the user * (will wait for CSS transitions to complete). */ $('#myModal').on('hidden.bs.modal', function (e) { // do something... })