How to trigger an event when bootstrap modal closes

How to trigger an event when bootstrap modal closes

Hello,

I want to reset value when modal pop up close. I am able to reset value, when click on cancel button and cross icon in modal pop up but how can I reset value when click outside modal click?

How to trigger an event when bootstrap modal closes? hidden.bs.modal and hide.bs.modal not working for me.

Thanks.