The jQuery selector $('___').collapse() can be used to programmatically control Bootstrap collapsible elements.

  • '.collapse'
  • '.collapsible'
  • '.expand'
  • '.toggle'
The correct selector is $('.collapse').collapse(). This line of code initializes or toggles the collapse plugin for the selected elements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *