0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

fix error in javascript example under Asynchronous functions and transitions section

This commit is contained in:
Matt Dufresne 2021-06-15 08:43:24 -04:00 committed by Mark Otto
parent 2b2183a96e
commit 9485172017

View File

@ -109,7 +109,7 @@ All programmatic API methods are **asynchronous** and return to the caller once
In order to execute an action once the transition is complete, you can listen to the corresponding event.
```js
var myCollapseEl = document.getElementById('#myCollapse')
var myCollapseEl = document.getElementById('myCollapse')
myCollapseEl.addEventListener('shown.bs.collapse', function (event) {
// Action to execute once the collapsible area is expanded