+ 2

Use same jQuery code to different divs

I have a simple click function for one div that toggles some info under it. How can i use the same function in other divs? if i use the same class for all the divs, when i click on one of them, all the other divs toggle the info too, and i just need the cliked one.

12th Jan 2018, 2:18 AM
Federico Toledo
Federico Toledo - avatar
1 Resposta
+ 2
Thank you!
12th Jan 2018, 2:56 AM
Federico Toledo
Federico Toledo - avatar