Boot strap refers two hide events that we can use
Bootstrap 3 modal close event
hide.bs.modal : This event is fired immediately when the hide instance method has been called.
hidden.bs.modal : This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).
Example:
You can use the following syntax to catch the bootstrap modal hide event
$('#myModal').on('hidden.bs.modal', function () {
// do somtething here
});
bootstrap 2 modal close event
hide: This event is fired immediately when the hide instance method has been called.
hidden: This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).
Example:
You can use the following syntax to catch the bootstrap modal hide event
$('#myModal').on('hidden', function () {
// do something…
});
Using above jquery code you can catch the bootstrap modal close event.
No comments:
Post a Comment