Is there an event that I can tie into that is fired when a bootstrap dropdown is closed or toggled?
See Question&Answers more detail:osIs there an event that I can tie into that is fired when a bootstrap dropdown is closed or toggled?
See Question&Answers more detail:osFrom twitter bootstrap official page:
$('#myDropdown').on('hide.bs.dropdown', function () {
// do something…
});
hide.bs.dropdown
is one of 4 events described here.
These events also work same in Bootstrap 4
. Bootstrap v4 Documentation.