I am facing an issue with my Bootstrap collapsible elements. I came across an answer that includes the necessary javascript to close only the collapsible items in my table, while leaving other collapsible items on the page (in the menu) unaffected. These items are designed to be manually opened and not automatically closed. However, after implementing the javascript code from the provided answer, opening one collapsible item results in all other collapsibles on the site being closed. How can I make it so that only specific collapsibles are closed?
My desired outcome can be better explained through this JSFiddle exampleclick the link to view the code
. In this example, clicking on a row in the first table should open the content, and clicking on another row in the SAME table should close the previously opened one. Clicking on a row in the second table should not affect the opened content in the first table.
Thank you to everyone for your assistance! :D