Collapse Events Not Working


Topic: Collapse Events Not Working

digitalmanagerguru pro asked a year ago

With this code:

$('#Collapse').on('show.bs.collapse', function () {
    alert('testing');
})

*Expected behavior*The bootstrap event should be fired when the collapse is opened.

*Actual behavior*The collapse is opened but the bootstrap event is not fired.

Is this a known bug? Thanks!


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Win.10
  • Provided sample code: No
  • Provided link: No
Tags