php - Collapse Bootstrap 4

Solution:

Hi checked with bootstrap 4. Its working proper.Please find the below link

https://www.codeply.com/p?starter=Bootstrap%204

Paste your code and check its working as expected.

Answer

Solution:

Notice on the <div id="collapseTwo"> the data-parent attribute is set to #accordion? Be sure to set that attribute to the ID of whatever element contains the accordion, otherwise it will not work.

https://www.codeply.com/p/vmRvzOHcEr

Source