Reputation: 11
I am using bootstrap 3.0.0.
I am facing a small problem in bootstrap modal
, I want to set the focus to the element which invoked the modal window after closing the current modal window
.
Upvotes: 1
Views: 2253
Reputation: 92893
Use Bootstrap's custom events:
$('#myModal').on('hide.bs.modal', function (e) {
// do something...
});
http://getbootstrap.com/javascript/#modals (last sub-section)
Upvotes: 3