I was working in react, when accordion is open i wanted to hide the span element
Hi Ruthra,
You can find an accordion usage example in our documentation:
https://preview.keenthemes.com/metronic8/react/docs/accordion
To hide and show span in React you can use conditional rendering:
{yourCondition && <span>your span content</span>} Hi,
Sorry for misunderstanding
You can use the following collapse event to hide and show your span element.
var myCollapsible = document.getElementById("myCollapsible")
myCollapsible.addEventListener("show.bs.collapse", function () {
// do something...
})