I am a begginer so sorry in advance for probable easy topic
I am trying to use “show and hide on click” feature with my FAQ list.
The idea is to have a list of questions with answers that will appear on click (one at a time).
The problem is that the interaction “show and hide” is assigned to the class of the object appearing.
Concidering that I have a bunch of answers I would like to use same class for them to be able to format them with one click.
Unfortunately this causes “show and hide” interaction to show and hide all of the answers with given class.
So the question is:
Is there anyway to make it work without having to make each seperate interaction for each answer and having problems with styling those answers (seperate class for each of them :() ?
Thank you in advance