I have a unique scenario where there is a wizard with accordion steps. My goal is to implement proper error handling at each step and allow users to open random panes without following the wizard sequence.
Is it possible to trigger an event in Bootstrap accordion when the currently open pane changes? Can this event be used for error handling and to identify which pane is being closed or opened?
After receiving feedback, I made the necessary adjustments and successfully implemented the solution.
$('#Accordion').on('hide.bs.collapse', function(event) {
if(event.target.id == "review") {
// perform specific action
}
});