How to Call a function on close bootstrap modal using Jquery?

Want to run a function , On Close Bootstrap Modal.

# On Show or Open a Bootstrap Modal, Call a function

$('#modal').on('shown.bs.modal', function (e) {
    // Execute Your Codes 
}) 

# On Close or Hide a Bootstrap Modal, Call a function

$('#modal').on('hidden.bs.modal', function (e) {
    // Execute Your Codes 
})

For any suggestion or feedback, queries please comment to improve.

Leave a Comment