Account Deleted
Hi,
Your solution looks pretty good.
- I am not sure how your Js code is 'cause I can't find it, but if you are
adding a css class
when you click on a tab you shouldset it to toggle
, so it'll toggle between beingactive and inactive
.
You are already doing it, but with clicking on another tab, it's pretty much the same concept.
Keep coding👍.
Marked as helpful
@mdajmalshadab
Posted
@thulanigamtee Thanks , but I am not adding css class when clicking on a tab, I am using href (referenced to id of the div) and using :target
in css section to open up the answer part of faq. I have tried using data-toggle:collapse
attribute from bootstrap as well. But in the latter case I got new challenge(previous accordians were not closing on its own after opening the new one).
@mdajmalshadab
Posted
@thulanigamtee Thank you! I think I have solved the issue that I was facing.