From: Matt Dufresne Date: Tue, 15 Jun 2021 12:43:24 +0000 (-0400) Subject: fix error in javascript example under Asynchronous functions and transitions section X-Git-Tag: v5.0.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9485172017868952047da5f188bc13a92ef0435d;p=thirdparty%2Fbootstrap.git fix error in javascript example under Asynchronous functions and transitions section --- diff --git a/site/content/docs/5.0/getting-started/javascript.md b/site/content/docs/5.0/getting-started/javascript.md index f57a3aedf6..8ee4289211 100644 --- a/site/content/docs/5.0/getting-started/javascript.md +++ b/site/content/docs/5.0/getting-started/javascript.md @@ -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