Good morning, I'm creating this topic because I performed a search in the forum and found this solution here.
Opening a < div > when you click on a < a >? link
But I need a more specific solution.
I am developing a questionnaire, for each question, I created a HELP tag This tag should display a div when clicked (so far, that's all right)
Problem:
For each HELP tag I need to display specific content. That is, if the link is clicked on question one, the div next to it should be opened but with the specific content to help in question 1, if the link is clicked on question two, the content to be displayed should be referring to question two .. and so on.
My solution:
I can create N DIVs with an ID selector with the specific content for each tag. But I would like to simplify this process, something like: use a class to identify the div and compare which Link was clicked to display the specific element within that div, then I would use the same div always with only the different content ...
I think this is personal, I do not know if it was very clear.
Thanks for the attention