I created a collapsible button using tag in HTML. Each details have sub-details. I was able to create one however I have encountered some errors I can’t seem to fix.
Here’s the output I was trying to do:
- I’d like for the collapsible button to automatically open when inputted in the Search button
- Only details that are inputted in the Search button should show up
- Auto-close collapsible when clicked another collapsible button
Let me know if you have clarifications. Thank you!
Here’s my code (Note: I’m not a JavaScript Programmer, please bear with me). The comments I have added are the codes I’ve tried to achieve the mentioned output above.https://codepen.io/moonchildev/pen/yLWyybZ
moonchild is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.