Hello all,
I have a loop in my website's code that pulls information from a database based on the words that the user has searched for in the search bar.
The results are displayed using a loop so all the divs essentially have the same 'id'.
I am trying to create a toggle sliding down 'expand' button for each entry that ONLY expands for one individual 'div' at a time.
How would I go about doing this?
I was able to create an 'expand' button on each div but when I click 'expand' it expands ALL hidden areas on ALL divs in the displayed results from the loop, b/c they all have the same 'id' name....
Is there a way around this?