The hide.bs.modal event occurs modal is about to be hidden.
Click the "Hide Modal" button to trigger the hide method (which will trigger the hide.bs.modal event).